Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 670 Bytes

File metadata and controls

7 lines (5 loc) · 670 Bytes

Schedule a batch job in regular intervals

Contains:

  • jbatch-schedule.xml - a definition of the batch job, defines a property and a single task that executes a batchlet.
  • SimpleBatchlet.java - the batchlet that reads a file name from the job property and writes a line with timestamp into that file.
  • SimpleSchedule.java - an EJB component with a schedule that triggers it every 30 seconds. The EJB then starts the batch job as defined by the XML definition.