Announcement Announcement Module
Collapse
No announcement yet.
Quarts trigger goes to error-state Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Quarts trigger goes to error-state

    Hi. I have a newbie-question about transactions and persisted jobs in quartz.

    I have problems understanding what to do base on this sentence, taken from the javadoc of setDataSource in SchedulerFactoryBean:
    A Spring-specific subclass of Quartz' JobStoreCMT will be used. It is therefore strongly recommended to perform all operations on the Scheduler within Spring-managed (or plain JTA) transactions. Else, database locking will not properly work and might even break (e.g. if trying to obtain a lock on Oracle without a transaction).
    I have a situation where I have a bean referencing a SchedulerFactoryBean, and hence getting a reference to a Scheduler.
    What I have done is to use the setTransactionManager-method on the SchedulerFactoryBean to make it have a JDBCTransactionManager, but this is probably not what is meant here, or?

    Does it want me to a transactionTemplate and all that stuff around every call to the scheduler?

    Regards
Working...
X