tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lyallex <lyal...@gmail.com>
Subject Re: How do you access all sessions from a servlet in tomcat 6.0?
Date Wed, 19 Sep 2007 13:04:20 GMT
On 9/19/07, David Delbecq <delbd+jakarta@oma.be> wrote:
> Just use WeakReference :)

Er, well that's OK, the  WeakReference referant object (the session)
is null after gc
but now I have a WeakReference object lurking in my Map as opposed to
the HttpSession object previously so I'm not really gaining anything.
Probably best to remove the K, V  pair when the session is destroyed.

> > Anyway, I'll shut up now.

I wish.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message