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?