This content has been marked as final.
Show 2 replies
-
1. Re: corba tcp connection remains after destoying the orb and
anguyen Apr 14, 2005 9:32 AM (in response to sunfire)Perhaps the connections are remaining open until _ncRef and _server are garbage collected. You can try changing your destroy() method to:
if (_server != null) { _server._release(); _server = null; } if (_ncRef != null) { _ncRef._release(); _ncRef = null; _nameService = null; } _orb.shutdown(true); _orb.destroy(); _orb = null;
I think destroying the ORB only releases connections from object adaptors that you've registered with the ORB. I don't think it closes any connections obtained from references to remote services. I could be wrong. -
2. Re: corba tcp connection remains after destoying the orb
sunfire Apr 14, 2005 1:56 PM (in response to sunfire)"anguyen" wrote:
Perhaps the connections are remaining open until _ncRef and _server are garbage collected.
I tried it now but it does not work. :( The connections are still there even after a call to the _release() methods and to System.gc().