You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ke...@core.tb.cz on 2000/07/03 13:29:29 UTC

public static properties of servlet class

Hello all,
I have one small question:
Assuming that I have following  property in the servlet
class:

public static Object test = new Object();

AFAIK such object should never be garbage collected (true or not?).
What will happen if the servlet classloader will 'unload' this servlet?
Is the 'Class' object for my servlet class still holding reference to my
'test' object or it's going to be garbage collected?

Thanks
Roman Kratochvil