| Author |
Bean managed transaction for MDB
|
trupti nigam
Ranch Hand
Joined: Jun 21, 2001
Posts: 602
|
|
Hello all, I am using Bean managed transaction for the MDB. Does that mean that I can use Transaction.Begin() and Transaction.rollback() in my code? Thanks, trupti
|
 |
Dushy Inguva
Ranch Hand
Joined: Jun 24, 2003
Posts: 264
|
|
Trupti, Yes. You have to invoke the begin() and commit() but, using CMT would make your life a lot more easier unless you have a very good reason not to do so. BMT makes shooting yourself in the foot really easy :-)
|
SJCP, SCBCD, SJCD, SCDJWS, SCEA (Part I)
|
 |
Balamaci Serban
Ranch Hand
Joined: Mar 16, 2005
Posts: 49
|
|
|
And more, be aware that MDB with BMT does not have any effect on message redelivery, while in using a MDB with CMT does, if calling a setRollbackOnly() on the MessageDrivenContext.
|
 |
 |
|
|
subject: Bean managed transaction for MDB
|
|
|