• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Entity Bean life cycle query

 
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Mark,
Thanks a lot!!!

Shrinivas
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Marco,
can u explain something more about it.
Thanks

Aparna.
 
Get me the mayor's office! I need to tell him about this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic