This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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:

 
 
subject: Firing Quartz Job
 
Similar Threads
org.springframework.batch.core.repository.JobExecutionAlreadyRunningException
spring with quartz example
send email using spring + Quartz Scheduler
Quartz Cron Expression Help
Need help on Spring - Quartz Job deployment in Jboss server