aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes stateless session bean life cycle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "stateless session bean life cycle" Watch "stateless session bean life cycle" New topic
Author

stateless session bean life cycle

sanpra sing
Greenhorn

Joined: Aug 28, 2002
Posts: 15
The j2ee developers guide describes two states for a stateless session bean. Non existent state (NES)and the ready state. From NES two methods are called in the transition to ready state. These are setSessionContext and ejbCreate. From ready to NES only one method, ejbRemove is called.
Comparing this with the stateful session bean life cycle, the create method of the home interface is indicated when transitioning from NES to ready and the remove method of the remote interface is indicated when transitioning from ready to NES.
Why is these two methods not indicated in the stateless session bean life cycle?
thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: stateless session bean life cycle