tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lyallex <>
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 <> 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:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message