users@glassfish.java.net

Closing a MBeanServerConnection

From: <glassfish_at_javadesktop.org>
Date: Tue, 21 Sep 2010 04:05:44 PDT

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
[Message sent by forum member 'ruperty']

http://forums.java.net/jive/thread.jspa?messageID=483243