Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Doubt in operations allowed in bean methods

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

The EJB spec says: 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.

ejbCreate, ejbRemove, ejbActivate and ejbPassivate of stateful session bean run in unspecified transaction context, then howcome these methods have Resource manager access and Enterprise bean access.

What is client security context?

I am not able to understand when access is allowed to these resources in different bean methods by different types of beans.

Please guide.

Thanks
Mini (preparing for SCBCD)
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very good question Mini,
I went through the spec and the HFEJB for this problem but no clue.
It would be great if anybody could explain it.

Thanks
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
was going thru forums to refresh my knowledge since i have SCBCD in 2 days..
saw your question.. got me confused and searched the internet.
i found no answer, then i re-read your post

The EJB spec says: 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.

and i found the answer:

which the container does not have a meaningful transaction context OR client security context.

in SFSB, you dont have meaningful tx context, but you DO have a client security context (each SFSB is associated with 1 and only 1 client).

in SLSB, you don't have neither tx nor client security context since SLSB are not specific to a client

i think this is the anser

any comments welcome

hth
marco
 
Here. Have a potato. I grew it in my armpit. And from my other armpit, this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic