[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Notification for the completion of Jobs triggered in Quartz scheduler  XML
Forum Index -> Quartz
Author Message
sathesh

neo

Joined: 09/04/2012 23:25:38
Messages: 8
Offline

Hi ,
I need to know when the job completes (like a Boolean value).
Is there any in-build method I can use in the Quartz API for the notification of job completion.

Thanks ,
Sathesh
sathesh

neo

Joined: 09/04/2012 23:25:38
Messages: 8
Offline

I trying to generate files using cron scheduler . After it gets completed it needs to be copied to another location .
So basically if I get to knw when my job completes , i can start copying the files from then on.
Any suggestion/ideas would be greatly helpful .

Thanks !
gyan10

ophanim

Joined: 06/28/2011 23:15:25
Messages: 697
Offline

You can implement the JobListener. JobListener interface is clear with call back methods like before your job is executed (jobToBeExecuted), and after job is executed (jobWasExecuted).
Please read below doc for more details.

http://quartz-scheduler.org/documentation/quartz-1.x/tutorials/TutorialLesson07

Cheers!!!

Gyan Awasthi
Terracotta -A Software AG company
sathesh

neo

Joined: 09/04/2012 23:25:38
Messages: 8
Offline

Hi Gyan,
Thanks you !
Yes I hav tried that . Even then the Listeners are specific to single Job .
My requirement is like , the trigger should fire after two cron jobs complete. Is there any way that the Listeners can be implemented for two cron jobs ?
 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team