Message Driven Bean Does Not Receive JMS Messages in Oracle Application Server 10.1.2.3 (Doc ID 1297038.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Containers for J2EE - Version: 10.1.2.3.0 and later   [Release: AS10gR2 and later ]
Information in this document applies to any platform.

Symptoms


A Message Driver Bean (MDB) is deployed into Oracle Application Server 10.1.2.3.0 container.

The related descriptor of this MDB bean is the following :

<ejb-jar>
..
<message-driven>
<display-name>MDBAuditoria</display-name>
<ejb-name>mdbAuditoria</ejb-name>
<ejb-class>com.setecsa.audit.mdb.MDBAuditoria</ejb-class>
<transaction-type>Container</transaction-type>
<message-selector>RECIPIENT='MDB'</message-selector>
<message-driven-destination>
<destination-type>javax.jms.Queue</destination-type>
</message-driven-destination>
</message-driven>
..
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>mdbAuditoria</ejb-name>
<method-name>onMessage</method-name>
<method-params>
<method-param>javax.jms.Message</method-param>
</method-params>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>




When sending JMS message, the onMessage () method of the MDB is not invoked.
Therefore, the MDB bean does not receive any JMS message.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms