Results 1 to 2 of 2

Thread: Spring & Quartz. Scheduling stateful jobs via appcontext

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    London
    Posts
    311

    Default 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. #2
    Join Date
    Sep 2004
    Location
    London
    Posts
    311

    Default

    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

Similar Threads

  1. Scheduling Jobs with Quartz and Spring
    By MmarcoM in forum Container
    Replies: 4
    Last Post: Mar 2nd, 2010, 02:23 PM
  2. Problem with Quartz and Spring (durable jobs)
    By keithc in forum Container
    Replies: 4
    Last Post: Nov 1st, 2006, 02:17 PM
  3. Spring code remarks
    By Alarmnummer in forum Architecture
    Replies: 18
    Last Post: Apr 7th, 2005, 07:17 AM
  4. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  5. Scheduling Quartz jobs and Application Context
    By fmourioux in forum Container
    Replies: 5
    Last Post: Aug 27th, 2004, 01:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •