[jboss-user] [JBoss Messaging] - Re: Message not re-delivered to Specified OR Default DLQ

ataylor do-not-reply at jboss.com
Fri Jul 24 07:12:48 EDT 2009


fyi MDB's are not part of the messaging project, they are part of the Application Server.

However,

You are using bean managed transactions which means the delivery of the messages to the MDB are outside the scope of the bean managed transaction. This makes sense if you think about it because you will be beginning the tx inside you MDB onMEssage.


You need your MDB to be Container manages with a transaction type of 'REQUIRED'. Also when you lookup the connection factory inside your MDb for sending you need to look up the correct one. Usally this is mapped to 'java:/JmsXA'. Doing this means that the delivery of the message and anything you do in your MDB are involved in the same tx, i.e. 1 fails both fail.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245805#4245805

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245805



More information about the jboss-user mailing list