Network Deployment (Distributed operating systems), v8.0 > Administer applications and their environment > Administer Scheduler service > Manage schedulers > Configure schedulers


Configure schedulers using Java Management Extensions

Schedulers can be created or configured using the Java Management Extensions (JMX) API using one of several scripting languages or Java.

To run with Java, the following JAR file needs to be present in the program class path: com.ibm.ws.admin.client_6.1.0.jar..

Complete these steps when using Java programs that utilize JMX.


Procedure

  1. Look up the host and get an administration client handle.
  2. Get a configuration service handle.
  3. Update the resource-pme.xml file using the configuration service, as needed.

    1. Find the SchedulerProvider for a given scope.

    2. Create a SchedulerConfiguration and specify all required parameters identifying the SchedulerProvider as the parent object.

  4. Reload the resource-pme.xml file to bind the newly created scheduler into the JNDI namespace. Perform this step to use the newly created scheduler immediately, without restarting the application server.

    1. Locate the DataSourceConfigHelper MBean using the name.

    2. Invoke the reload() operation.


Results

A scheduler is now configured and ready to use for newly installed applications. If the scheduler JNDI name is not yet visible to the application, reinstalling the application or restarting the application server will allow the scheduler to be seen.

When schedulers are created for the first time, the poll daemon does not automatically start, and start it manually. When you restart the server, the poll daemon starts automatically. To start the poll daemon manually, refer to the scheduler daemons topic.

Changes to existing scheduler configurations will not take affect until after the application server is restarted.


Related


Example: Using scripting to create and configure schedulers
Introduction: Administrative scripting (wsadmin)
Scheduler daemon
Create a custom Java administrative client program using WAS administrative Java APIs


Related


API documentation

+

Search Tips   |   Advanced Search