[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
If I am inside the job. How do I remove (from db)it's trigger? Thanks.  XML
Forum Index -> Quartz
Author Message
qwerty53

journeyman

Joined: 03/22/2012 07:34:59
Messages: 47
Offline

Hi,
If I am inside the job. How do I remove (from db)it's trigger? Thanks.
jhouse

seraphim
[Avatar]
Joined: 11/06/2009 15:29:56
Messages: 1654
Online


scheduler.unscheduleJob() method. The same as from outside the execute() method.
qwerty53

journeyman

Joined: 03/22/2012 07:34:59
Messages: 47
Offline

How do you get the scheduler if the system restarted (but the triggers remained)?
light5

ophanim
[Avatar]
Joined: 01/14/2011 20:32:56
Messages: 513
Offline

You can't access trigger without an instance do scheduler! So if your system restarted, you would restart scheduler.

Zemian Deng
---------------
Looking for a web UI to manage Quartz?
Try http://code.google.com/p/myschedule
[WWW]
qwerty53

journeyman

Joined: 03/22/2012 07:34:59
Messages: 47
Offline

light5 wrote:
You can't access trigger without an instance do scheduler! So if your system restarted, you would restart scheduler. 


So what you are saying a new instance of scheduler can give me triggers from old scheduler?
light5

ophanim
[Avatar]
Joined: 01/14/2011 20:32:56
Messages: 513
Offline

If you use DB store, yes.

Zemian Deng
---------------
Looking for a web UI to manage Quartz?
Try http://code.google.com/p/myschedule
[WWW]
qwerty53

journeyman

Joined: 03/22/2012 07:34:59
Messages: 47
Offline

light5 wrote:
If you use DB store, yes. 


What do you mean DB store? All triggers are stored in the DB inside the fired_triggers table.
light5

ophanim
[Avatar]
Joined: 01/14/2011 20:32:56
Messages: 513
Offline

If you are using a database with quartz then answer is yes. You can restart scheduler and still get the stored trigger back. If not then it defeat the purpose of persistent DB.

We're you not able see stored triggers after restart?

Zemian Deng
---------------
Looking for a web UI to manage Quartz?
Try http://code.google.com/p/myschedule
[WWW]
qwerty53

journeyman

Joined: 03/22/2012 07:34:59
Messages: 47
Offline

i amam doing getCurrentlyExecutingJobs() and they not all return. I expected to see a copy of the fired_triggers table
 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team