aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Access to Resource Managers & other EJB's Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Access to Resource Managers & other EJB Watch "Access to Resource Managers & other EJB New topic
Author

Access to Resource Managers & other EJB's

sandeep vaid
Greenhorn

Joined: Jul 08, 2004
Posts: 20
Hi Kathy,

in page 80 spec, the methods of the stateful session bean with CMT are given which can access the methods on SessionContext and the resoures.

there is

ejbCreate
ejbRemove
ejbActivate
ejbPassivate

can access

Resource manager access
Enterprise bean access

even if they are in unspacified transaction context the reason may be this
given at page 81 spec

Accessing resource managers and enterprise beans is disallowed in the session bean methods
for which the Container does not have a meaningful transaction context or client security context.

In above case we have Security context because it is Stateful session bean.

But now my qestion is that if this is allowed because of security context then even In CMT

afterCompletion<

execute in unspacified transaction and have the security context to it then
why

Resource manager access
Enterprise bean access

is not allowed in this case. Pls answer this i have very big doubt.

Thanks!!
Sandy
[ December 07, 2004: Message edited by: sandeep vaid ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Access to Resource Managers & other EJB's
 
Similar Threads
Stateful Session bean - Meaningful Tx context
How unspacified Txn have access to resources
Session bean ejbCreate method
question about dependent injection
Couple of doubts in Session Bean