• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB - Stateful Session Bean

 
Sachin Choudhari
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to EJB. And refering to Server Side Programming, J2EE edition by wrox.
I am having query regarding how the stateful session bean maintains the state between two request calls of the same user?
How it identify the user?
Thanks,
Sachin
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The client must maintain a reference to the Stateful Session Bean. For Web Clients this is usually done by putting the Stateful Session Bean's Handle in an HttpSession and then later using the Handle to get a reference to the EJBObject.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!