Hi Everyone,
I have singleton where I am storing an object in a hashtable against sessionid as a key.
My question is if the session is invalidated will the object be garbage collected by the JVM ?
If not is there a way I can store the object per session in the singleton (The object is large so can not be stored in the session for performance issues)such that it can be eligible for garbage collection when a session expires.
We dont have control over the signout or invalidation of a session. The appServer handles it at its end.
Thanks
Dhiren
I have singleton where I am storing an object in a hashtable against sessionid as a key.
My question is if the session is invalidated will the object be garbage collected by the JVM ?
If not is there a way I can store the object per session in the singleton (The object is large so can not be stored in the session for performance issues)such that it can be eligible for garbage collection when a session expires.
We dont have control over the signout or invalidation of a session. The appServer handles it at its end.
Thanks
Dhiren