I am new to using MDBs so bear with me.
I have a queue that persists messages to a db. I want to create a non-durable MDB to a different queue but cannot seem to do it. I modified my jbossmq-service.xml so I am using the PersistenceManager. This works fine for my durable queue. What about my non-durable queue? Messages sent received by the mdb are persisted but I do not want them to be.
I feel I am missing something easy.
<message-driven>
<ejb-name>MessageRequestsMDB</ejb-name>
<ejb-class>com.earthlink.prov.core.messaging.mdbs.MessageRequestsMDB</ejb-class>
<message-selector></message-selector>
<transaction-type>Container</transaction-type>
<acknowledge-mode>Auto-acknowledge</acknowledge-mode>
<message-driven-destination>
<destination-type>javax.jms.Queue</destination-type>
<subscription-durability>NonDurable</subscription-durability>
</message-driven-destination>
</message-driven>
Ok, so writing code while you are sick does not help either.
I found some bugs in my code which was causing everything to be persisted.
Later.