When I did the
ejb mock
test, there is sth I don't understand.
The test said the following statement regarding message-driven bean exception handling is false:
If a system exception is thrown by a method, the transaction is always rolled back by the container The explanation is:
----------------------------------------------------
A transaction is not rolled backed by the container as a result of a system exception thrown when the transaction runs with an unspecified transaction context and also when a bean is declared with bean-managed transaction demaraction.
------------------------------------------------------
I agree that if the MDB in an unspecified transaction context, then there would be no rollback, but with BMT throw system exception, the container should rollback the tx, right?

SCJP, SCWCD, SCBCD, SCDJWS, OCA9i,<br />IBM Certified WAS5.0 Admin<br />IBM Certified Solution Developer - WebSphere Studio 5.0<br />IBM Certified Solution Developer - XML and related Technologies