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
|