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#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...