JBoss File
This section shows the configuration of the mandatory resources and optional properties for TAFJJEE_MDB.jar/META-INF/jboss-ejb3.xml.
The following code block presents the corresponding JBOSS EAP7 configuration part for a given MDB called OFSTransactedMDB, which is in the <enterprise-beans> section of the jboss-ejb3.xml.
<message-driven>
<ejb-name>OFSTransactedMDB</ejb-name>
<activation-config>
<activation-config-property>
<activation-config-property-name>destination</activation-config-property-name>
<activation-config-property-value>java:/queue/t24OFSQueue</activation-config-property-value>
</activation-config-property>
</activation-config>
<resource-ref>
<res-ref-name>jms/TAFJQueueConnectionFactory</res-ref-name>
<res-type>javax.jms.ConnectionFactory</res-type>
<jndi-name>java:/ConnectionFactory</jndi-name>
</resource-ref>
<message-destination-ref>
<message-destination-ref-name>jms/ReplyQueue</message-destination-ref-name>
<jndi-name>java:/queue/t24OFSReplyQueue</jndi-name>
</message-destination-ref>
</message-driven>
The property values in the code block are explained in the following table. You can modify certain values, if required.
|
Xml path |
Example value |
Comment |
|---|---|---|
|
ejb-name |
OFSTransactedMDB |
Indicates the ejb-name of the ejb-jar.xml. You can modify this value, if required. |
|
Activation Configuration |
||
|
activation-config-property-name |
destination |
Indicates the JMS property. |
|
activation-config-property-value |
java:/queue/t24OFSQueue |
Indicates the name of the queue in jboss jndi tree of the MDB. You can modify this value, if required. |
|
Resources Reference Configuration |
||
|
resource-ref\ res-ref-name |
jms/TAFJQueueConnectionFactory |
Configures the JMS connection factory for the response reply queue. |
|
resource-ref\ res-type |
Javax.jms.ConnectionFactory |
Indicates the JMS property. |
|
resource-ref\ jndi-name |
ConnectionFactory |
Matches the default JMS resource connection factory in jBoss You can modify this value, if required. |
|
Message Destination Reference |
||
|
message-destination-ref\ message-destination-ref-name |
jms/ReplyQueue |
Indicates the mapping with the reply queue. |
|
message-destination-ref\jndi-name |
java:/queue/t24OFSReplyQueue |
Indicates the name of the reply queue in jboss jndi tree. You can modify this value, if required. |
In this topic