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
"[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
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
"[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