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 define a job as follows, and you are packaging your application as a WAR file, include the job definition file in
<job id="simplejob" xmlns="http://xmlns.jcp.org/xml/ns/javaee" version="1.0"> ... </job>