Configuring the J2EE Job Executor Agent
To set up the environment on the external WebSphere® Application Server, Version 7.0 for the J2EE Job Executor Agent, do the following:
Create
a Service Integration Bus
- Open the WebSphere Administrative Console (for example, http://localhost:9060/admin, depending on the admin port you configured).
- Expand Service Integration and select Buses. The Buses window is displayed.
- Click New to display the Buses configuration window.
- Type a name for the new bus, for example MyBus and click Next and then Finish to confirm.
- Click the MyBus name and the MyBus properties are displayed.
- Under Topology, click Bus Members. The Buses→MyBus→Bus members window is displayed.
- Click Add, select the Server radio button, choose your_application_server_name, click Next, and then click Finish.
- When the Confirm the addition of a new bus member panel is displayed, click Finish.
- Select Service Integration → Buses → MyBus → Destinations → New.
- Select Queue as the type and click Next
- Type BusQueue as the identifier and assign the queue to a bus member. Click Next. In the confirmation panel click Finish.
Configure the Default Messaging Service
- From the left panel of the WebSphere Administrative Console, expand Resources→ JMS→ JMS Providers, then click Default messaging at the server level as scope.
- In the Connection Factories section, click New.
- On the New JMS connection factory window, type in the following
fields:
- Name
- MyCF
- JNDI name
- jms/MyCF
- Bus name
- MyBus
- Provider endpoints
- <hostname>:<Basic SIB port number>:BootstrapBasicMessaging;<hostname>:<Secure SIB port number>:BootstrapSecureMessaging
- Select again Resources -→ JMS-→ JMS Providers → Default
Messaging at the server level as scope, locate the section Destinations,
and click Queues. Click New and
type in the following fields as shown:
- Name=MyQueue
- JNDI name=jms/MyQueue
- Bus name=MyBus
- Queue name=BusQueue
- Select again Resources → JMS → JMS Providers → Default Messaging at the server level as scope, and locate the section Activation Specifications.
- Click JMS activation specification. Click New and
type in the following fields as shown:
- Name=MyActSpec
- JNDI name=eis/MyActSpec
- Bus name=MyBus
- Destination type=Queue
- Destination JNDI name=jms/MyQueue
Configure the Java security
- Select Security → Secure Administration, applications and infrastructure.
- Locate the Authentication section, expand the Java Authentication and Authorization Service, and click J2C authentication data.
- Click New and type in the following fields
as shown:
- Alias=usr
- User ID=usr
- Password=pwd
- Click Ok.
Create an XA DataSource
- In the left pane, go to Resources → JDBC..→ JDBCProviders. In the resulting right pane, check that the scope is pointing to your_application_server_name.
- Locate the DERBY JDBC Provider (XA) entry and click it.
- Locate the Additional Properties section and click Data Sources.
- Click New and type in the following fields
as shown:
- Name = MyScheduler XA DataSource
- JNDI name = jdbc/SchedulerXADS
- Database name = ${USER_INSTALL_ROOT}/databases/Schedulers/${SERVER}/SchedulerDB;create=true
- At the top of the page, click Test connection button.
- Even if you get a negative result, modify the Database name field, deleting the part ;create=true. Click Ok.
Create a WorkManager
- In the left pane, go to Resources → Asynchronous beans → Work managers and click New.
- type in the following fields as shown:
- Name=SchedulerWM
- JNDI name=wm/SchedulerWM
- Click Ok.
Create and configure a scheduler
- In the left pane, go to Resources → Schedulers and click New.
- type in the following fields as shown:
- Name=MyScheduler
- JNDI name=sch/MyScheduler
- Data source JNDI name=jdbc/SchedulerXADS
- Table prefix=MYSCHED
- Work managers JNDI name=wm/SchedulerWM
- Click Ok.
- Select MyScheduler and click Create tables.
- Deploy the test application.