uCosminexus Application Server, Application Setup Guide
For using CTM to schedule the Stateless Session Beans included in a J2EE application that is to be scheduled using CTM, specify the settings for scheduling Stateless Session Beans.
You can schedule only Stateless Session Beans for which the remote home interface is implemented.
To use the scheduling function, set up the runtime properties of Stateless Session Beans. For details on setting up the runtime properties of Stateless Session Beans, see 9.10.2 Setting the runtime properties for Stateless Session Beans.
You also specify the settings for integrating with CTM in the application properties.
You must set up both the application properties and Session Bean Properties. Hitachi recommends that you use the HITACHI Application Integrated Property File to specify the settings.
HITACHI Application Integrated Property File
You execute the following command to acquire the HITACHI Application Integrated Property File:
cjgetappprop [server-name] [-nameserver provider-URL] -name J2EE-application-name -type all -c path-of-the-hitachi-application-integrated-property-file |
cjgetappprop MyServer -name adder -type all -c C:\home\Adder.xml
You execute the following command to apply the values of the HITACHI Application Integrated Property File:
cjsetappprop [server-name] [-nameserver provider-URL] -name J2EE-application-name -type all -c path-of-the-hitachi-application-integrated-property-file |
cjsetappprop MyServer -name adder -type all -c C:\home\Adder.xml
The attribute settings to be edited are as follows:
The individual settings are as follows:
The following table describes the settings for integrating Stateless Session Beans with CTM:
| Items | Mandatory | Corresponding tags |
|---|---|---|
| Presence of CTM integration | Y | <managed-by-ctm> |
| Queue deployment model | Y | <scheduling-unit> |
For details on the property settings, see 3.2.1 Contents of the application property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.
The following table describes the runtime attribute settings (<session-runtime>) for integrating Stateless Session Beans with CTM:
| Items | Mandatory | Corresponding tags |
|---|---|---|
| Settings for scheduling | Y | <enable-scheduling> |
| Queue name | Y | <scheduling> - <queue-name> |
| Number of threads | Y | <scheduling> - <parallel-count> |
| Queue length | O | <scheduling> - <queue-length> |
For details on the property settings, see 3.4.1 Contents of the Session Bean property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.
If you specify the settings using an application property file and Session Bean property file and without using the HITACHI Application Integrated Property File, you must specify the settings in the following order:
cjsetappprop [server-name] [-nameserver provider-URL] -name J2EE-application-name -type ejb -resname display-name-of-EJB-JAR/ display-name-of-Stateless-Session-Bean -c path-of-the- Session Bean property file |
cjsetappprop [server-name] [-nameserver provider-URL] -name J2EE-application-name -c path-of-the-HITACHI-application-property-file |
cjsetappprop [server-name] [-nameserver provider-URL] -name J2EE-application-name -type ejb -resname display-name-of-EJB-JAR/ display-name-of-Stateles-Session-Bean -c path-of-the-hitachi-The Session Bean property file |
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.