This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

When the client makes its second call to the stateful session bean, how does that bean know it is co

 
Aalok Singh
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,

Exactly how is the state retained from client to application server?
In other words: when the client makes its second call to the stateful session bean, how does that bean know it is coming from that same specific client?

Here what is client... servlet or logged in user..?


Regards,
Aalok
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "session" is maintained in the proxy that's returned to the code which either does the lookup of the bean or gets the bean via injection. As long as you use the same proxy instance, the session info is retained and is available to the server to identify it to a session state.

Here what is client... servlet or logged in user..?


Any code which is using that bean.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic