[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Messages posted by: aashaikh  XML
Profile for aashaikh -> Messages posted by aashaikh [1]
Author Message
HI ,

I have two Batch Jobs say StartXYZJob.java and StopXYZJob.java that implements Class Job. Now in my web application I call StartXYZJob with every new entry created in the logic. Now say 5 instances of this StartXYZJob exist and now i call a StopXYZJob to stop schedule of the StartXYZJob...it will kill all the jobs..which is my issue. I understand there is a design flaw here.

Can you please suggest how can i uniquely identify a Job instance of a Job from the others of the same type and stop the correct job schedule which i started previously among the other 4 active.


Thank You
 
Profile for aashaikh -> Messages posted by aashaikh [1]
Go to:   
Powered by JForum 2.1.7 © JForum Team