em.getTransaction() is NOT the right way to get access to the JTA transaction (it should be throwing an exception).
instead you need to call EJBContext.setRollbackOnly(). You can get the EJBContext from JNDI or by injecting it using @Resource. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971494#3971494 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971494 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
