admin@glassfish.java.net

Closing a MBeanServerConnection

From: Rupert Young \(Restart\) <"Rupert>
Date: Tue, 21 Sep 2010 10:31:02 +0100

With the management API creation of a MBeanServerConnection,

 

  aconn = new AppserverConnectionSource(host, port, user, pass, null);

  mconn = aconn.getMBeanServerConnection();

 

creates a new thread each time. If this in a loop it quickly results in an
outofmemory error.

 

How can the MBeanServerConnection be closed, there doesn’t appear to be an
appropriate method?

 

Regards,

 

Rupert Young

Principal Architect

ReStart Consulting Ltd

Connecting the NHS

Ë UK: +44 1753 865879

Ë UK: +44 7795 480387

http://www.restartconsulting.com <BLOCKED::http://www.restartconsulting.com>