[jboss-user] [JBoss Seam] - Re: Exception Handling (w/ interceptor)

gavin.king@jboss.com do-not-reply at jboss.com
Thu Sep 14 04:43:49 EDT 2006


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



More information about the jboss-user mailing list