Re: Life span of a resource

Hi,


I wanted to follow up on this topic:




> > 2. If i use a static variable in a resource, can I be
> > sure that it stays there untill jigsaw shuts down?
>
>No, usually it will (because Jigsaw doesn't often think it 's getting
>low of memory), but you should not assume this will be true
>
> > 3. Is there a method in the resource that's
> > being called when jigsaw shuts down (for resource cleanup)?
> > finalize() does the job, but only when
> > garbage is collected ...


What should one do of they require some static variable(s) on the server?
These may be contained in the
Resource class itself OR may be shared among many resources. Can I force
resources to be dumped so I can
test my server side programs? Is there a way to see what resources are
currently "active"?


Sorry for all the questions. I hope that these are relevant to others as well.



Mike

Received on Monday, 7 October 1996 14:56:27 UTC