EJB programming & troubleshooting: Mantain State of Session EJB across multiple JSP's/Servlets
I am using Stateful sesion beans in my web application.
- Posted by: Nehal Dave
- Posted on: January 20 2002 15:52 EST
I need to access same session bean across multiple servlets/JSPs . can any1 suggest an efficient way of doing so.
- Mantain State of Session EJB across multiple JSP's/Servlets by Toby Hede on January 20 2002 18:28 EST
I presume you mean you need to link a Servlet session with a particular Session in the EJB tier. To do this, acquire the handle of your stateful session bean (from the Home interface) and store the handle reference as a session variable in your Servlet container. You can then re-acquire the SSB from the Handle reference.