[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xmlblaster-devel] Socket test with thread leak?
Marcel Ruff wrote:
As soon as the Global is recycled all resources (like threads)
are freed.
If not to depend on the garbage collector you
can explicitly call
glob.shutdown();
Peter,
i have now added glob.shutdown() to xmlBlasterAccess.disconnect()
to be independent of the JVM garbage collector.
I have played with a profiler tool to verify that
there is no thread or memory leak.
Global is receycable, you can use it after a shutdown()
again to make a new XmlBlasterAccess connection.
The new code is in cvs,
regards,
Marcel
--
http://www.xmlBlaster.org