• Post Reply Bookmark Topic Watch Topic
  • New Topic

Stateful Session Bean

 
thomas davis
Ranch Hand
Posts: 207
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These types of EJBs can be saved and restored across client sessions.
To save, a call to the bean's getHandle() method returns a handle
What is the handle ? How does to functioning for persisting the data?
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can call the EJBHandle method of the remote or local business interface and store it in some secondary storage or session. When you want to call the ejb again , deserialize the handle and invoke the EJBObjext method of the handle. You get the EJB reference returned by this method.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!