M
Mohun Biswas
My webapp has a Login servlet which creates a Session object, after
which any number of other connections may take place in parallel within
that session. The session is ended by a Logout servlet which calls
Session.invalidate().
The problem is that the client is not a traditional browser but rather a
dedicated, custom-built program which may fork multiple copies of itself
in order to take advantage of Java threading on the server side. Thus
when the Logout servlet is invoked, a few other servlets may still be
active. Needless to say, if the session is invalidated while these are
still working things go haywire. I need a way for Logout to wait till
it's the only active servlet before ending the session. Any ideas?
J2SE 1.4.2, Servlet API 2.4
Thanks,
M.B.
which any number of other connections may take place in parallel within
that session. The session is ended by a Logout servlet which calls
Session.invalidate().
The problem is that the client is not a traditional browser but rather a
dedicated, custom-built program which may fork multiple copies of itself
in order to take advantage of Java threading on the server side. Thus
when the Logout servlet is invoked, a few other servlets may still be
active. Needless to say, if the session is invalidated while these are
still working things go haywire. I need a way for Logout to wait till
it's the only active servlet before ending the session. Any ideas?
J2SE 1.4.2, Servlet API 2.4
Thanks,
M.B.