session between user (using browser) and the servlets has to be managed
first...which cannot be done using Session Beans (stateless) because they
dont come into picture between this type of interaction......once u have
servlets managing the session for u as the user...the session with Session
Beans can be extended. Stateful Session beans maintain session between two
successive calls. as the servlets are called again and again ur reference to
statefull session bean will be lost. Therefore u will have store the handle
to session bean in the HttpSession variable....
Session Bean Handle is not same as reference to Session Bean.
I hope i am clear.
-----Original Message-----
From: Sreenivasa R V [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 21, 2000 11:19 AM
To: [EMAIL PROTECTED]
Subject: Session Management using Stateful Session Beans
Hi Guyz,
we are developing a web applicaton using servlet, jsp and EJB.we
want to implement session management using Stateful Session Bean as
follows.
1. All the user requests are routed through one common Servlet
(BaseServlet). i.e All our application servlets will be extending this
BaseServlet.
2. In the BaseServlet, A Stateful session bean is used for session
management. The problem is how do i ensure that same bean is being
called when the same user requests for second time.
I have browsed the archieves but there is no information on this. I do
not want to use HttpSession of Servlet Engine.
Without implementing this functionality, we cannot move further in our
application development. So all your responses will be greatly
appreciated.
Thanx in advance,
Sreenivas R.V.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".