Quartz job not available in the DB after the schedule is over

View: New views
4 Messages — Rating Filter:   Alert me  

Quartz job not available in the DB after the schedule is over

by prec1009-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I should a job to fire after 2mins of the current time. I set the durability to 1 (jobDetail.setDurability(true);) but still after the schedule the job entry deleting from my QRTZ_JOB_DETAILS table. Even i tried with jobDetail.setDurability(false);. But no use.

I need help, it is urgent. Kindly help me how to retain the job entry in the DB.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=401454&messageID=488724#488724


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Quartz job not available in the DB after the schedule is over

by prec1009-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Are you adding the JobDetail object using the scheduler object's addJob() method?
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=401454&messageID=489504#489504


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Quartz job not available in the DB after the schedule is over

by prec1009-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is what I did, by setting the durability of the Corn Job to true shouldn't I be able to see the entries in the [u][b]qrtz_fired_triggers[/b][/u] for the all previous instances of this corn job triggered which were successful.

JobDetail job = new JobDetail("job1", "group1", SampleJob.class);
        job.setDescription("Sample Job running for testing");
        job.setDurability(true);
        job.setRequestsRecovery(true);
        CronTrigger trigger = new CronTrigger("trigger1", "group1", "job1",
                "group1", "0/20 * * * * ?");
        sched.addJob(job, true);        
        Date ft = sched.scheduleJob(trigger);
        log.info(job.getFullName() + " has been scheduled to run at: " + ft
                + " and repeat based on expression: "
                + trigger.getCronExpression());

Thanks
Rakesh
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=401454&messageID=490325#490325


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Quartz job not available in the DB after the schedule is over

by prec1009-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I believe you will only see one entry for each unique trigger (TriggerName/TriggerGroup) indicating it's last fire time.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=401454&messageID=491050#491050


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...