I'm having this very strange problem with using a Queue. The situtation I have is I'm trying to send a message to a queue via Entity postCreate method. This processes appears to run fine as it sends the message without exceptions. However, according to my subscribed client & the jboss admin web console, no messages ever get to that queue. Now, interestingly enough, If I use a Topic to send the messages from the Entity bean, everything works perfectly. Can anyone suggest something that I might be doing wrong? Here are my descriptors:
Thanks.
---------------------------------------------------
ejb-jar.xml:
---------------------------------------------------
<message-driven >
<![CDATA[]]>
<ejb-name>testController</ejb-name>
<ejb-class>testController</ejb-class>
<transaction-type>Container</transaction-type>
<acknowledge-mode>Auto-acknowledge</acknowledge-mode>
<message-driven-destination>
<destination-type>javax.jms.Queue</destination-type>
</message-driven-destination>
<resource-ref >
<res-ref-name>XAConnectionFactory</res-ref-name>
<res-type>javax.jms.QueueConnectionFactory</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</message-driven>
--------------------------------------------------
Jboss.xml
--------------------------------------------------
<message-driven>
<ejb-name>testController</ejb-name>
<destination-jndi-name>queue/ControllerQueue</destination-jndi-name>
<resource-ref>
<res-ref-name>XAConnectionFactory</res-ref-name>
<jndi-name>XAConnectionFactory</jndi-name>
</resource-ref>
</message-driven>
use the java:/JmxXA as ConnectionFactory
Regards,
Stephane