Announcement Announcement Module
No announcement yet.
Quartz StatefulJob Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Quartz StatefulJob

    How do i configure a quartz Job to be stateful in spring batch?
    In my batch application, the next instance of quartz batch job starts even if the previous one is still executing.

    In Quartz framework there is a marker interface to do this? Can somebody help me with this?

  • #2
    The JobLauncher should throw an exception if you try to launch a job instance that is already running. If it is the *next* instance, then it won't, but you your JobLauncher client can check if it needs to using a JobExplorer to see if the instance is already running.

    Or you could use the Quartz stateful job I suppose, but that seems like overkill.