Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How is Stateful session bean mapped to Client

 
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
 
Ranch Hand
Posts: 489
Eclipse IDE Tomcat Server Java
  • 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.
 
    Bookmark Topic Watch Topic
  • New Topic