posted 19 years ago
ejbcert-- clarification
Answers 2 and 4 are correct. When the container starts a transaction, it is responsible for controlling the transaction when it receives an exception. If the bean method throws an application exception but does not mark the transaction for rollback, **the container will commit the transaction before re-throwing the application exception to the client**. If the bean method marks the transaction for rollback, the container will roll back the transaction before re-throwing the application exception to the client.
------------------------------------------------------------------------
Will the container commit the trsxn before rethrowing the application excetpion?
regards
Stephen