• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stateful session beans - how are sessions handled?

 
Sridhar Raman
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How does the EJB container identify a client between subsequent requests to a stateful session bean? In servlets/jsp it is done through cookies/URL-rewriting... How does an EJB container do it???
Thanks in advance
Sridhar
 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servelts & JSP's are responding to stateless requests.
But when it comes to EJB you are actually holding the EjbObject reference on the client(Java App/Servlet/Jsp).
That means EJB Container need not do anything.
Ramdhan YK
 
Shankar Ranganathan
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct me if I am wrong.THe ejb container holds the conversational state thru the instance variables.
THanks
Shankar Ranganath
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic