Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How is Stateful session bean mapped to Client

 
Krishan Chauhan
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

As we know stateful session beans are extension of client. When we lookup for Stateful session bean in Client, session bean gets tied to the client. Whenever client calls a method on stateful session bean, how is it guaranteed that same stateful session instance is returned?
does client pass any information/sessionId to server to identify the session bean instance?
Also do we have to use same reference to invoke session bean method if we want the same session bean?
How server identifies that request is coming from same client or different client?


Thanks,
Krishan
 
ramprasad madathil
Ranch Hand
Posts: 489
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Responses 1,2 and 5 in this post tells you how.

cheers,
ram.
 
Krishan Chauhan
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ramprasad

does that mean the only way to get the same session bean instance is to cache the session bean reference on Servlet/Client.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic