This week's book giveaway is in the Java in General forum. We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line! See this thread for details.
Hi, I want to use a servlet to call a session EJB. Since there is only one instance of servlet in a web container, how can a stateful session know which client is calling it? Should I use stateless sessionbean and pass HttpSession obj from servlet to the stateless session bean? Any comments? JB
posted 14 years ago
If you have gone for the stateful session ejb design then you would have to store the session info in the HTTPSession object in order to be able to recall it. Of course, stateless is always better for EJB if you can get the HTTP session object to handle the session stuff...
John C. Kendall<BR>firstname.lastname@example.org<BR>email@example.com