Transaction is not rolled back under BMT when application exception happens
posted 2 years ago
On p .387 and p.393, I noticed these:
1. Under BMT, when a singleton/stateless/stateful bean throws an application exception , the transaction is not rollback by the container. And the application exception is thrown to the client.
2. Under BMT, when a message driven bean throws an application exception, the transaction is not rollback neither. The exception is re thrown to resource adaptor.
Why the transaction is not rollback when application exception occurs under BMT?
Or, the bean provider (developer) has to handle this by calling UserTransaction.rollback() in the business method when the application exception is caught ?