| Author |
is getRollBackOnly container callback?
|
Alfred Harre
Ranch Hand
Joined: Apr 29, 2004
Posts: 73
|
|
|
is EJBContext.getRollBackOnly() a container callback?
|
 |
Lionel Orellana
Ranch Hand
Joined: Mar 19, 2004
Posts: 87
|
|
No Alfred You call EJBContext.getRollBackOnly() when you want to find out if the transaction has been marked for rollback ...
|
 |
Alfred Harre
Ranch Hand
Joined: Apr 29, 2004
Posts: 73
|
|
Originally posted by Lionel Orellana: No Alfred You call EJBContext.getRollBackOnly() when you want to find out if the transaction has been marked for rollback ...
Ok, I am confused here :roll: EJBContext.getRollBackOnly() is for CMT only. It means, only container can call this method, right? If only container can call it then it is a container callback. (may be i am more confused than you initially thought ) Please correct me.
|
 |
Giju George
Ranch Hand
Joined: Jun 08, 2004
Posts: 333
|
|
EJBContext.getRollbackOnly() is for CMT and UserTx.getStatus() is for BMT. These two methods are called by the bean provider to know the status of the tx. getRollbackOnly() is used to find out whether the tx was set to rollback at any point using EJBContext.setRollbackOnly() regds Giju
|
SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCEA
|
 |
 |
|
|
subject: is getRollBackOnly container callback?
|
|
|