A continuación se muestra el contenido xml para configurar MDB, puede modificar el código siguiente en consecuencia.
<enterprise-beans>
<message-driven>
<ejb-name>SomeMessageBean</ejb-name>
<ejb-class>
com.bean.SomeMessageBean
</ejb-class>
<messaging-type>javax.jms.MessageListener</messaging-type>
<transaction-type>Container</transaction-type>
<message-destination-type>
javax.jms.Queue
</message-destination-type>
<activation-config>
<activation-property>
<activation-config-property-name>destinationType
</activation-config-property-name>
<activation-config-property-value>javax.jms.Queue
</activation-config-property-value>
</activation-property>
<activation-property>
<activation-config-property-name>messageSelector
</activation-config-property-name>
<activation-config-property-value>MessageFormat = 'Version 3.4'
</activation-config-property-value>
</activation-property>
<activation-property>
<activation-config-property-name>acknowledgeMode
</activation-config-property-name>
<activation-config-property-value>Auto-acknowledge
</activation-config-property-value>
</activation-property>
</activation-config>
<resource-ref>
<resource-ref-name>jms/ConnectionFactory</resource-ref-name>
<resource-type>
javax.jms.ConnectionFactory
</resource-type>
<res-auth>Container</res-auth>
<mapped-name>ConnectionFactory</mapped-name>
<injection-target>
<injection-target-class>
com.bean.SomeMessageBean
</injection-target-class>
<injection-target-name>datasource</injection-target-name>
</injection-target>
</resource-ref>
</message-driven>
</enterprise-beans>