Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • 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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!