I 'm bit confused.... If a bean throws a Application Exception will the Transaction be committed before throwing the Application Exception to the client.
Any comments... - Stephen
posted 11 years ago
Let's say that this is a CMT bean. Transactions are scoped at method level for all CMT beans. When an application exception is thrown, the container is required by the EJB spec not to rollback the transaction. There are two ways to end a transaction: commit or rollback. So, the container must commit the transaction at the end of the method.
SCJP 1.4, SCWCD 1.3, SCBCD 1.3
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads