This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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
As far as know, in such cases, you should keep the handle of the stateful session bean in HttpSession and leter retrieve the bean using handle. Please let me know whether this answers your question. Cheers, Naresh