posted 18 years ago
HF book on page 228 it's mentioned that
Stateless bean CAN NOT get a transaction reference and call methods on it (BMT) in ejbCreate & ejbRemove methods.
On page 196 it's mentioned that
Stateful bean CAN get a transaction reference and call methods on it (BMT) in ejbCreate & ejbRemove methods.
Is this right and if yes, then why is that difference in the behavior of Stateless vs Stateful? Also, it's mentioned that both stateful & stateless beans can't invoke setRollbackOnly & getRollbackOnly on CMT beans in ejbCreate/ejbRemove methods. Why that differentitation between BMT and CMT beans?
Please reply.
Thanks
Deep