uCosminexus Application Server, Application Setup Guide
You set the application runtime properties for the individual Stateless Session Beans that form an application.
Session Bean attribute file
Execute the following command to acquire a Session Bean attribute file:
cjgetappprop [server-name] [-nameserver provider-URL] -name J2EE application-name -type ejb -resname EJB-JAR-display-name/Stateless-Session-Bean-display-name -c path-of-the-Session-Bean-attribute-file |
cjgetappprop MyServer -name adder -type ejb -resname adder/MyAdder -c C: \home\MyAdder.xml
Execute the following command to apply the values of the Session Bean attribute file:
cjsetappprop [server-name] [-nameserver provider-URL] -name J2EE application-name -type ejb -resname EJB-JAR-display-name/Stateless-Session-Bean-display-name -c <path-of-the-Session-Bean-attribute-file |
cjsetappprop MyServer -name adder -type ejb -resname adder/MyAdder -c C: \home\MyAdder.xml
The runtime properties of the Stateless Session Bean are classified into the following three types:
The respective settings are described below:
The following table describes the property settings for the runtime attributes common to the Session Beans (<runtime>):
| Items | Mandatory | Corresponding tags |
|---|---|---|
| Look up name of the Enterprise Bean#1 | Y | <lookup-name> |
| Optional name of the Enterprise Bean name having a remote interface#1 | O | <optional-name> |
| Optional name of the Enterprise Bean name having a local interface#1 | O | <local-optional-name> |
| Maximum number of sessions#2 | O | <maximum-sessions> |
| Settings for scheduling#3 | O | <enable-scheduling> |
| Pass by reference settings#4 | O | <pass-by-reference> |
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.
The following table describes the property settings for the runtime attributes specific to Stateless Session Beans (<runtime> - <stateless>):
| Items | Mandatory | Corresponding tags |
|---|---|---|
| Minimum number of the instances in the pool | Y | <pooled-instance> - <minimum> |
| Maximum number of the instances in the pool | Y | <pooled-instance> - <maximum> |
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.
The property settings and operations are explained below:
The following table describes the property settings for the runtime attributes of CTM integration (<runtime> - <scheduling>).
| Items | Mandatory | Corresponding tags |
|---|---|---|
| Queue name | Y | <queue-name> |
| Thread name | Y | <parallel-count> |
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.
For details on CTM scheduling, see 9.14 CTM scheduling.
Minimum number of pooled Stateless Session BeansMaximum number of pooled Stateless Session Beans
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.