Two Laptop Bag*
The moose likes Other Application Frameworks and the fly likes Firing Quartz Job Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Firing Quartz Job" Watch "Firing Quartz Job" New topic
Author

Firing Quartz Job

Kerry Wilson
Ranch Hand

Joined: Oct 29, 2003
Posts: 254
I would like to fire a quartz job outside of the trigger, I have my job setup like in the documentation, ie:



I would like to grab the documentNotificationJob ( which is easy enough ) but I could not find a run method or anything on the JobDetail or Trigger classes. How can I accomplish this?


http://www.goodercode.com
SCJP 1.4
Kerry Wilson
Ranch Hand

Joined: Oct 29, 2003
Posts: 254
sorry, forgot to mention this is quartz in a spring context.
Hongli Li
Ranch Hand

Joined: Oct 29, 2006
Posts: 124
dose your DocumentNotificationJob extends QuartzJobBean Class,inside which has a method called executeInternal(JobExecutionContenxt context) method, that's where you should add you logic to.


Do you know why this cup is useful? Because it is empty.
Kerry Wilson
Ranch Hand

Joined: Oct 29, 2003
Posts: 254
ok, just FYI I did this by setting the group and name in my JobDetailBean, then executed this:

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Firing Quartz Job