• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

get Security Information

 
edi kapllani
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am not very clear about why a 'CMT entity bean' can't get Security Information about the client in ejbActivate() callback.

thank u,
 
Naslai Shobha
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Edi,

ejbActivate() is a container call back method.

Since this is called by the Container the security context of the client will not be available.
 
yamini nadella
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
does it mean all container call back methods can get client security information???
 
Nileesha Bojjawar
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All the container callbacks cannot get client security information.
For Eg: ejbPassivate and ejbActivate run in a unspecified transactio ncontext and have no client transactio nand client security information available to them.
But the ejbLoad and ejbStore are run in a transaction context(consider them as the beginning and the end of the business methods respectively) and hence have access to the client security information.

Hope this helps, but please anybody tell me if this is wrong, as i myself have just started learning things.

Regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic