[jboss-user] [JBoss AOP] - Re: Can i have interceptor on throw exception?

stale.pedersen@jboss.org do-not-reply at jboss.com
Tue Apr 29 14:04:35 EDT 2008

im not sure that i completely understand what you mean, but here we go :)
you have a method yyy() that throws an exception which again triggers a rollback and an exception is then again thrown on the method thats "outside" of the transaction (correct?).
which exception do you want to catch? the rollback or the exception that triggers the rollback. both are possible to catch.
the code example that i provided is just an example of how to throw another exception than the one that was thrown. you can just alter it to not throw an exception if that is what you want.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147605#4147605

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147605

More information about the jboss-user mailing list