[16.0.0.4 and later]

Viewing Java batch jobs in Admin Center

With the Admin Center Java Batch tool, you can view the progress and status of your Java™ batch jobs.

Before you begin

To use the Java Batch tool, you must enable the tool in Admin Center and have batch jobs to view:

  1. Ensure that the configuration file for the server that runs Admin Center has the following Liberty features:
    • adminCenter-1.0
    • batchManagement-1.0
  2. Add the Java Batch tool to your dashboard. See Customizing the Toolbox.
  3. Create and deploy a Java batch application and then submit batch jobs. The database of batch jobs must be persisted. See Deploying Java batch applications in Liberty.
  4. If the batch jobs or job logs do not reside on the server that runs Admin Center, configure CORS on each remote server that has batch jobs or job logs to enable Admin Center to request job information from each remote server. In a multiple-server batch environment, Admin Center relies on CORS to relax the same-origin policy for remote calls to other Liberty servers. Your CORS configuration on remote servers that Admin Center accesses must specify the URL of the Admin Center server in the allowedOrigins attribute of the cors element:
    <cors
        domain="/ibm/api/batch"
        allowedOrigins="https://Admin_Center_host:Admin_Center_port"  
        allowedHeaders="Accept, Accept-Encoding, Content-Type, X-Requested-With" 
        allowedMethods="GET, PUT, DELETE, OPTIONS"
        exposeHeaders=""
        allowCredentials="true"
        maxAge="3600"/>

    The CORS configuration does not need to be on the Liberty server where Admin Center runs. See Configuring Cross Origin Request Sharing on a Liberty server. For details on cors attributes, see cors - Cross-Origin Resource Sharing (cors).

About this task

View and filter your Java batch jobs by using the Java Batch tool.

Procedure

What to do next

To refresh the current page, select Refresh Refresh icon.

To return to the dashboard, select Dashboard Dashboard icon.

[17.0.0.1 and later]From the job execution details or job log file page, you can select from the horizontal navigation bar to display a different page.


Icon that indicates the type of topic Task topic

File name: twlp_ui_jb_using.html