Details
-
Bug
-
Resolution: Done
-
Critical
-
Preview 5
-
None
Description
Application exceptions from ejb3 session beans trigger a rollback of the whole transaction (ie, TransactionRolledbackException is thrown).
Client -> BeanA.method() -> BeanB.method()
If BeanB.method() throws an application exception, BeanA never gets a chance to catch it.
I realize there is a lot of grey in the spec and this is why there is a bug for "Proper exception handling", EJBTHREE-9. However, it's hard to imagine that any future revision of the spec would disallow catching application exceptions, and it would be really nice to have this specific bit of functionality now rather than later. It's hard to write significant programs without application exceptions
Thanks.