posted 20 years ago
Hi,
According to the spec. pg 90 Table 3, It clearly states that BMT stateless session beans can call EJBContext.getUserTransaction() in ejbCreate() and ejbRemove() methods, but UserTransaction methods (begin(), commit() etc...)can be called only in the business method from component interface.
Same logic for Message Driven Beans (spec pg. 320 Table 12).
Whereas in case of stateful session beans you can call EJBContext.getUserTransaction() and also methods on UserTransaction in ejbCreate()/ejbRemove()/ejbActivate()/ejbPassivate()/Business Methods
Hope this helps.
[ November 29, 2004: Message edited by: M Murthy ]
[ November 29, 2004: Message edited by: M Murthy ]
Sindhu Murthy<br />SCJP 1.4<br />SCBCD