• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Entity Bean life cycle query

 
Shrinivas Mujumdar
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,
I have one small doubt related to Entity Bean life cycle,I am reffering to Enterprise Java Bean Book- O'reilly, there is one statement which goes like this (in context of transitioning of bean instance from pooled state to the ready state via activation page No. 284 fourth Edition):
"When a bean instance is activated ,it leaves the instance pool(the pooled state) to an EJB Object. Once assigned to proper EJB Object,the ejbActivate() method is called
-the instance's EntityContext can now provide info. specific to the EJB Object but, it can't provide security or transactional info."
I am not getting exactly the meaning of the statement which is highlighted in bold.
Thanks in advance.
Shrinivas Mujumdar
 
Marco Barenkamp
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

the context can be used to retrieve the pk of the bean, eg. But it cannot be used to ask who is invoking the method (e.g. in order to dertmine if the caller is in role) or if there is a transaction currently.
 
Shrinivas Mujumdar
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Mark,
Thanks a lot!!!

Shrinivas
 
Apps Yadav
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Marco,
can u explain something more about it.
Thanks

Aparna.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic