Anonymous committed 29b42f7

QUARTZ-735: acquireNextTrigger executing on Managed Tx Connection when using JobStoreCMT and configured not to acquire triggers within lock.


Comments (0)

Files changed (1)


     	else { // default behavior since Quartz 1.6.3 release
-	        return (Trigger)executeWithoutLock(
+	        return (Trigger)executeInNonManagedTXLock(
+	                null, /* passing null as lock name causes no lock to be made */
 	                new TransactionCallback() {
 	                    public Object execute(Connection conn) throws JobPersistenceException {
 	                        return acquireNextTrigger(conn, ctxt, noLaterThan);