Creating a Java batch project with the Java EE Batch Project wizard

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

Install the Java batch feature for WebSphere® Application Server Developer Tools for Eclipse. This feature is an optional. You can install it from Help > Install WebSphere Software.

Procedure

  1. Select File > New > Other > Java EE Batch > Java EE Batch Project.

    The Java EE Batch Project wizard displays.

  2. In the Project name field, type the name of the Java batch project.
  3. 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.
  4. In the Target runtime field, select the target runtime environment for the project
    Use the following supported server for running your batch projects:
    • WebSphere Application Server Liberty profile
  5. For the Configuration section, use the default configuration or select Modify to add more function to your project by adding more facets.
  6. In the Dynamic Web project membership section, add the project to a web archive (WAR) file.
    1. 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.

    2. 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.

  7. Optional: For the Working sets field, add the Java batch project to a working set.
    1. Select Add project to working sets.
    2. 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.
    3. Select the working set from the Working sets: field.
  8. Click Next.
  9. On the Java page, accept the default source folder and output folder, or specify different folders, then click Next.

    The Java Batch page displays.

  10. Accept the default for creation of a batch job folder.

    All your Java batch jobs for this project are stored in this folder.

  11. 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.

  12. Click Finish.

Results

You created a batch project for JSR 352.

What to do next

Create a batch job.

Feedback