uCosminexus Application Server, Application Setup Guide

[Contents][Index][Back][Next]

9.4 Defining message references of Message-driven Beans

You define the message references of Message-driven Beans.

Organization of this section
(1) Attribute file to be edited
(2) Acquiring the attribute file to be edited and setting the attributes
(3) Attribute settings to be edited

(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>

Legend:
Y: Mandatory

#
We recommend that you do not share the JMS queue between several different Message-driven Beans.

For details on the property settings, see 3.6.1 Contents of the MessageDrivenBean property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.