Hi,

you'll probably need to keep, as a servlet variable, a container
calles "sessionList" with all
sessions that reference your objects.
You can automate its content updates using session bound listener interface.

Cezar

On Mon, 10 May 1999, Andrey Sazonov wrote:

> Hi all there!
> I have following problem and I hope somebody can help me.
> I've developed servlet that stores user data in the http session.
> When destroy() method for this servlet is called, I want to perform
> cleanup for this user data. I can't wait until sessions expirations,
> because there is quite specific object that is responsible to maintain
> connection to another server in user data I've stored in the session, and
> this is why I want to invalidate it manually( and so close connection).
>
> The main problem, that I'm unable to get SessionContext in the destroy()
> method to obtain list of sessions.
> Does anybody know how may I do this? The only way I see is to maintain
> additional
> list of objects placed in the session within my servlet, but It seems to be
> ugly a little :)
>
> ---------------------------
> Sincerely
> Andrey Sazonov,
> ([EMAIL PROTECTED])
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>


Cezar Totth                             email:  [EMAIL PROTECTED]
                                        Fax:    (401) 220 33 95
Genesys Software Romania                Phone:  (401) 638 49 44
Stefan Furtuna 169, sect.6
cod 77171, Bucharest
Romania

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to