Announcement Announcement Module
Collapse
No announcement yet.
Spring & Quartz. Scheduling stateful jobs via appcontext Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring & Quartz. Scheduling stateful jobs via appcontext

    hello all,
    i want to schedule a job that get executed with a simpleTrigger.
    I want to declare the job in my applicationcontext, as explained in chapter 18 of spring reference documentation.
    However, if i do that, it looks like quartz is storing the trigger in the database, and next time that i restart my server, the trigger is not fired. I had a look at status of the trigger in qrtz_triggers table, and the status is error.
    so, my question is: can i schedule a stateful job by declaring it in applicationContext?
    if so, will quartz scheduler try to create a new trigger for my stateful job e very time i restart teh server?

    thanx in advance and regards
    marco

  • #2
    Hello,
    i solved my problems by setting the volatility property to false for both job and triggers.
    for some reasons, after my app was restarted, the trigger that i declared in applicationcontext.xml was having a status of ERROR in the database..
    my guess was because it was trying to re-register same trigger with same id as well as job with same job id..
    any comments welcome if i got it wrong....

    thanx and regards
    marco

    Comment

    Working...
    X