Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Firing Quartz Job

 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry, forgot to mention this is quartz in a spring context.
 
Hongli Li
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, just FYI I did this by setting the group and name in my JobDetailBean, then executed this:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic