Skip to main content

How do you make a JMS messsage delivery enrol in the active container managed tx?

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
pranahata
Offline
Joined: 2013-07-11

On the below example,12 messages are sent via 1.1 and 2.0 style to 2 destinations and then ctx.setRollbackOnly() is invoked. All messages arrive at two destinations, one outside the EJB container (Java SE) and on MDBs inside the container.

http://speedy.sh/uYxQp/JmsNoEnroleInTransaction.zip

Is there anything one needs to do to make JMS be JTA transaction aware?