Show TOC

Procedure documentationConfiguring the Java Scheduler Interface Locate this document in the navigation structure

 

This section covers the installation of the Java eXternal Batch Processing (JXBP) interface to the SAP NetWeaver Java Scheduler (NWJS), which allows you to schedule Message-Driven Beans.

The SAP NetWeaver Java Scheduler is a simple 'cron-like' scheduler built into the SAP NetWeaver Application Server, as part of version 7.10 (including the Java EE 5 Preview Edition). This scheduler allows specially written Message Driven Beans (MDB's) to be scheduled using simple expressions. It also has an external interface (JXBP) that can be used by more powerful schedulers (like SAP CPS) to achieve the following:

  • monitor jobs scheduled by NWJS

  • submit new jobs to NWJS for immediate execution.

This allows NWJS to be monitored as part of a larger system, or for some or all NWJS scheduled jobs to be transferred to an external scheduler. The first scenario is most useful for smaller systems, the other scenarios allow the external scheduler to control NWJS jobs. This means that NWJS jobs can be run on a different schedule, more appropriate to the system usage, or scheduled as part of more complex processing, in a job chain for example.

Once the JXBP interface is configured, a process server and queue is created for you automatically with all required services. When you edit an SAP System, the required services are added automatically to the process server, so there is no need to change services on a process server.

Prerequisites

  • Appropriate version of SAP NetWeaver Application Server, and the latest NetWeaver Java Scheduler.

  • the URL of the JXBP server, aka the server running the NetWeaver Java Scheduler

  • A user in the NetWeaver Java Scheduler to be used for JXBP.

Gather the appropriate configuration details

You will need a system running an SAP NetWeaver Application Server Java. You need the following configuration information:

  • The hostname of the server (for example java1.masalan.com). This will be referred to as <jxbp hostname>

  • The HTTP port number used to connect (for example 50000, 56000, ...). This will be referred to as <jxbp http>

  • The username and password for the SAP 'Administrator' user of this system.

Ensure you have the appropriate version of SAP NetWeaver Application Server

While SAP CPS can run on version 7.00 (NetWeaver 2004s) and later, the NetWeaver Java Scheduler and JXBP require version 7.10 and above. The instructions here cover configuring version 7.10. If you are using the Java EE 5 Preview you should contact SAP for an update to JXBP that allows external schedulers to connect to it.

Procedure

Configure a user in the NetWeaver Java Scheduler to be used for JXBP.

  1. Navigate to NetWeaver Administrator (http://<jxbp hostname>:<jxbp http>/nwa)

  2. Navigate to   Operation Management → Jobs → Java Scheduler → External Schedulers  .

  3. Choose Add and fill in the details of the <jxbp user> and choose Add. These details will be needed when you connect SAP CPS to this Java Scheduler.

Note Note

If you do not see the appropriate page here, you may not have a version of the NetWeaver Java Scheduler with JXBP. Contact SAP support for help.

End of the note.

Note Note

Redwood recommends the use of redwood for name and user name.

End of the note.

Note Note

TimeoutGracePeriod should be set to one week, or 604800000.

End of the note.

To set up the interface to interact with the Java Scheduler:

  1. Choose   Environment → SAP Systems   in the Navigation bar.

  2. Choose New from the context menu.

  3. On the SAP System tab, fill the Name, J2EE URL and the Time zone fields.

  4. On the J2EE tab, fill in the Username and password in the fields, choose Check connection to make sure the account details are valid.

  5. Choose Save & Close to save the changes and close the edit window.

  6. Choose   Environment → Process Servers   in the Navigation bar.

  7. Choose Start from the context menu of the process server belonging to the relevant SAP System.