"Jeff Martin" <[EMAIL PROTECTED]> wrote:

> Don't know if this helps at all, but I've got the opposite problem (At
> least I think I have, not had a chance to really look at it.)
> 
> I'm starting a registry in a ServletContextListener and then binding
> objects to it. The registry is local to the contextInitialized method so
> I have no permanent references to it. After a while the rmi registry
> dies and I can no longer get a connection to it, I suspect it's being
> garbage collected somewhere.

Hmmm.. That's interesting... I can try calling "finalize()" manually :)
(It's a hack, but if it works, well, I'm set)...

[grmmmm... Browsing sources...]

> Are you having the opposite problem where your holding a reference to
> the registry which means it can't be garbage collected and so won't
> shutdown.

Ok, it looks like that ALTHOUGH I force garbage collection, the registry
remains up, until the VM doesn't exit...

Even if (though) the registry is up, the VM exit cleanly... So there must be
something not exiting somewhere else... I believe it's in the classloader
implemntation with RMI... But I'm not _that_ sure...

Regarding your problem of the RMI dying, what's the output of
# netstat -an | grep LISTEN
???? Is someone still bound to that port?

    Pier


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to