The Java EE 7 Tutorial
55.7 Packaging Batch Applications
Job definition files and batch artifacts do not require separate packaging and can be included in any Java EE application.
Package the batch artifact classes with the rest of the classes of your application, and include the job definition files in one of the following directories:
The name of each job definition file must match its job ID. For example, if you defined a job as follows:
<?xml version="1.0" encoding="UTF-8"?> <job id="simplejob" xmlns="http://xmlns.jcp.org/xml/ns/javaee" version="1.0"> ... </job>
and you are packaging your application as a
war archive, include the job definition file in