Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Access to Resource Managers & other EJB's

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Would anybody like some fudge? I made it an hour ago. And it goes well with a tiny ad ...
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic