You can create a Java™ batch project with the Java EE Batch Project wizard so that you can create and submit Java batch jobs.
Before you begin
Note: Java batch is only supported in WebSphere® Application Server traditional V9 and in WebSphere Application Server Liberty V8.5 and
V9.
Install the Java batch feature for WebSphere Application Server
Developer Tools for Eclipse. This feature is an optional. You can
install it from .
Procedure
-
Select .
The Java EE Batch Project wizard displays.
-
In the Project name field, type the name of the Java batch project.
-
In the Project location section, either use the default location, which
is selected by default, or specify the workspace location to store the project files.
-
In the Target runtime field, select the target runtime environment for
the project
Use the following supported servers for running your batch projects:
- WebSphere Application Server Liberty
- WebSphere Application Server traditional
-
For the Configuration section, use the default configuration or select
Modify to add more function to your project by adding more facets.
- Optional:
In the Dynamic Web project membership section, add the project to a web
archive (WAR) file.
-
Ensure that Add project to Dynamic Web project is selected.
The Add project to Dynamic Web project field is selected by default. You
need to add your project to a Dynamic Web project to deploy the application later.
-
In the Dynamic Web project name field, choose the web project that you
want to contain your batch project.
You can select an existing web project, or create a new project by accepting the default name or
entering a new one.
-
To deploy your project to WebSphere Application Server traditional, add the
project to an enterprise archive (EAR) file.
You cannot deploy a stand-alone EJB project or web project to WebSphere Application Server traditional. You must use an EAR file.
- Optional:
For the Working sets field, add the Java batch project to a working set.
-
Select Add project to working sets.
-
If there are no working sets in the Working sets: list, or you want a
different working set, click Select and add working sets to the
Working sets: list.
-
Select the working set from the Working sets: field.
-
Click Next.
-
On the Java page, accept the default source folder and output folder, or
specify different folders, then click Next.
The Java Batch page displays.
-
Accept the default for creation of a batch job folder.
All your Java batch jobs for this project are stored in
this folder.
- Optional:
Select the setting to generate the batch.xml file.
The batch.xml file is used during batch artifact resolution. This file
contains mappings of references names to batch artifact implementation class names.
-
Click Finish.
Results
You created a batch project for JSR 352.