[jboss-user] [EJB 3.0] - Re: Transaction does not rollback

2007-02-12 Thread c_eric_ray
You can annotate a user defined exception as such | @ApplicationException(rollback=true) | public class MyException extends Exception { | | ... | | } | This instructs the TM to rollback if this exception is thrown. View the original post : http://www.jboss.com/index.html?modul

[jboss-user] [EJB 3.0] - Re: Transaction does not rollback

2007-01-26 Thread ALRubinger
"[EMAIL PROTECTED]" wrote : application defined exceptions to not rollback the current transaction. You need to use the context setRollbackOnly to achieve this effect. This can't still be true? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006904#40

[jboss-user] [EJB 3.0] - Re: Transaction does not rollback

2007-01-26 Thread Wolfgang Knauf
Take a look at this: http://javahowto.blogspot.com/2006/06/4-ways-to-get-ejbcontext-in-ejb-3.html Hope this helps Wolfgang View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006797#4006797 Reply to the post : http://www.jboss.com/index.html?module=bb&op=postin

[jboss-user] [EJB 3.0] - Re: Transaction does not rollback

2007-01-25 Thread c_eric_ray
"[EMAIL PROTECTED]" wrote : application defined exceptions to not rollback the current transaction. You need to use the context setRollbackOnly to achieve this effect. I need to do just this very thing. However, for the life of me I cannot figure out how to get a refence to the EJBContext. Vi