Package org.quartz
Annotation Type ExecuteInJTATransaction
-
@Documented @Retention(RUNTIME) @Target(TYPE) public @interface ExecuteInJTATransactionAn annotation that marks aJobclass as one that will have its execution wrapped by a JTA Transaction.If this annotation is present, Quartz will begin a JTA transaction before calling the
execute()method, and will commit the transaction if the method does not throw an exception and the transaction has not hadsetRollbackOnly()called on it (otherwise the transaction will be rolled-back by Quartz).This is essentially the same behavior as setting the configuration property
org.quartz.scheduler.wrapJobExecutionInUserTransactiontotrue- except that it only affects the job that has the annotation, rather than all jobs (as the property does). If the property is set totrueand the annotation is also set, then of course the annotation becomes redundant.- Author:
- jhouse
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description inttimeoutThe JTA transaction timeout.
-