I believe that in the case of BMT, only BMT can invoke UserTransaction methods in the user code. EJBContext methods setRollbackOnly() and getRollbackOnly() only apply to CMT. UserTransaction methods include commit(), rollback(), getStatus(), and setRollbackOnly().
Originally posted by Narendra Dhande:
Hi,
The setRollbakOnly() is applicable to the CMT only. You can not use it with User transaction. To rollback the user transaction yo have to explicitly use the rollback() instead of commit().
Thanks
[ March 11, 2008: Message edited by: Frank Stein ]