posted 19 years ago
In general, it is advised to do access to resource manager ( access to enterprise beans) only in transaction context.
If so why is the above allowed in ejbCreate(), ejbremove() methods stateful beans ? However the operations are not allowed in afterCompletion() method. Why ?
[ejbCreate,ejbRemove and afterCompletion do not have a txn context in case of CMT]
Further the operations are not allowed in ejbCreate()/ejbRemove() methods of stateless beans. Why ? ( The user context is not available in the case of statless beans. But you can still access the resource managers without an user context)
Thanks in advance for the clarifications.
[ December 16, 2005: Message edited by: Sankar Subbiramaniam ]