9.4.1 Definition method
You define the message references of Message-driven Beans.
- Organization of this subsection
(1) Attribute file to be edited
Message-driven Bean attribute file
(2) Acquiring the attribute file to be edited and setting the attributes
-
Acquiring the attribute file
Execute the following command to acquire a Message-driven Bean attribute file:
- Execution format
cjgetappprop [server-name] [-nameserver provider-URL] -name J2EE application name -type ejb -resname EJB-JAR display name/Message-driven-Bean-display-name -c path-of-the-Message-driven-Bean-attribute-file
- Example of execution
cjgetappprop MyServer -name message -type ejb -resname message/MyMessage -c C:\home\MyMessageBean.xml
-
Setting the attributes
Execute the following command to apply the values of the Message-driven Bean attribute files:
- Execution format
cjsetappprop [server-name] [-nameserver provider-URL] -name J2EE application-name -type ejb -resname EJB-JAR-display-name/Message-driven-Bean-display-name -c path-of-the-Message-driven-Bean-attribute-file
- Example of execution
cjsetappprop MyServer -name message -type ejb -resname message/MyMessage -c C:\home\MyMessageBean.xml
(3) Attribute settings to be edited
The following table describes the message reference settings (<message-ref>):
Items |
Mandatory |
Corresponding tags |
---|---|---|
Connection Factory name |
Y |
<connection-factory> |
Display name of the resource adapter |
Y |
<connection-destination> - <resource-adapter> |
Display name of the queue# |
Y |
<connection-destination> - <queue> |
For details on the property settings, see 3.6.1 Specifications of the HITACHI MessageDrivenBean Property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.