Submitting a Java batch job
You can submit a job for your Java™ batch application and run that Java batch application on a WebSphere® Application Server traditional or Liberty server.
Before you begin
- Click to install the Java batch feature for WebSphere Application Server Developer Tools for Eclipse.
- Create a Java batch project.
- Create a Java batch job in the Java batch project.
- Ensure that your Java batch application is packaged.
If you are targeting a Liberty server, the wizard automatically packages the batch project in a web archive (WAR) file. You can also package your project in other resources. To target a WebSphere Application Server traditional server, package your project in an enterprise archive (EAR) file.
- You can create a server. Create a Liberty server, create a remote Liberty server, or create a WebSphere Application Server traditional server. If you are targeting a Liberty server, configure it for Java batch applications.
- Deploy the resource that contains
the batch application to a server.
- Select .
- Right-click the server and select Add and Remove....
The Add and Remove wizard displays.
- Select the resource that you want to deploy from the Available area to the Configured area by clicking Add >; then, click Finish.
- Start the server.
- Select .
- Right-click the server and select Start.
Procedure
Results
You submitted a batch job to your server so that you can run your Java batch application.
[Liberty] If the job submission is successful, a dialog shows information about the job instance that you submitted, and job execution details. If the submission fails, a dialog shows possible causes of the problem.
CWWKY0304W: User <user name> is not authorized to start batch jobs.Application security is enabled either directly through one of the appSecurity features or indirectly through a feature that enables it automatically, such as jaxrs. For more information about configuring batch authorization, see Securing the Liberty batch environment.
If the information provided in the dialog is not sufficient to diagnose the problem, or if you are not targeting a Liberty server, you can check the Error log view to see more details about the failure. You can also check the server logs, which are located in the wlp\usr\servers\<server>\logs directory.