Submitting a Java batch job
Before you begin
- Install the Java batch feature for WebSphere® Application
Server Developer Tools for Eclipse.
This feature is optional. You can install it from
. - Create a Java batch project.
- Create a Java batch job in the Java batch project.
- Ensure that your Java batch application is packaged.
The wizard automatically packages the resulting batch project in a web archive (WAR) file, but you can also package your project in other resources.
- Create a Liberty server or create a remote Liberty server and configure it for Java batch applications.
- Deploy the resource that contains the batch application to a Liberty server.
- Select .
- Right-click the Liberty 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 Liberty server.
- Select .
- Right-click the Liberty server and select Start.
Procedure
Results
You submitted a batch job to your Liberty server so that you can run your Java batch application.
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. If the information provided in the dialog is not sufficient to diagnose the problem, 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.