This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Entity Bean life cycle query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Entity Bean life cycle query" Watch "Entity Bean life cycle query" New topic
Author

Entity Bean life cycle query

Shrinivas Mujumdar
Ranch Hand

Joined: Aug 27, 2004
Posts: 328
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

Joined: Aug 27, 2001
Posts: 94
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.


Marco Barenkamp<br />_ _ _ _ _ ________________________ _ _ _ _ _ <br />L M I N T E R N E T S E R V I C E S AG<br /> <br />Head of Software Development<br /> <br /> <br />BEA Certified Enterprise Developer<br />Sun Certified Programmer for the Java2 Platform<br />Sun Certified Web Component Developer for the Java2 Platform<br />Sun Certified Developer for the Java 2 Platform <br />Sun Certified Business Component Developer for the Java 2 Platform <br />Sun Certified Enterprise Architect for the Java 2 Platform Enterprise Edition<br /> <br />LMIS AG
Shrinivas Mujumdar
Ranch Hand

Joined: Aug 27, 2004
Posts: 328
Hello Mark,
Thanks a lot!!!

Shrinivas
Apps Yadav
Greenhorn

Joined: Apr 07, 2005
Posts: 2
Hello Marco,
can u explain something more about it.
Thanks

Aparna.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Entity Bean life cycle query
 
Similar Threads
bean instance life cycle
Some doubts on - Mikalai Zaikin study material - Entity beans
an ejb bean pool question
Entity bean life cycle
EJB QL: Difference between find and select methods