Using a transaction in CMP which is marked as setRollbackOnly in session be

Session Bean is calling CMP.Session bean starts the transaction and CMP has transaction="Mandatory". What will happen if I call some finder method on CMP after I set mySessionContext.setRollbackOnly () in session bean?ThanksAbhay
[257 byte] By [tetsa] at [2007-11-27 9:27:40]
# 1

Once the application marks a transaction as setRollbackOnly, any other pieces of transactional

pieces of work within the same transaction can fail eagerly.So, if the finder executes within the

same transaction it could throw an exception. There's basically no reason to continue performing

any transactional work within the same transaction since it will never commit anyway.

ksaksa at 2007-7-12 22:30:11 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...