posted 20 years ago
Hi Srinivas,
CMT session bean method ejbCreate() is not considered part of client's transaction, then it run in an "unspecified transaction context". Becouse this, the nethods EJBContext.setRollbackOnly() and EJBContext.getRollbackOnly() can't be called in ejbCreate().
But for BMT session bean the bean provider manages the transaction, and then it is possible get UserTransaction and call methods on it in ejbCreate(), like begin(), commit(), getStatus(), rollback(), setRollbackOnly() and setTransactionTimeout().
I hope this helps you.
Vagner
SCJA, SCJP, SCBCD & SCEA (Part I)