Uploaded image for project: 'JBoss Remoting (3+)'
  1. JBoss Remoting (3+)
  2. REM3-172

JMX Registration is not closed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 3.2.14.GA
    • None

      In org.jboss.remoting3.remote.RemoteConnectionProvider, in the paramaterised constructor, a registration is performed:

              try {
                  final MBeanServer server = ManagementFactory.getPlatformMBeanServer();
                  server.registerMBean(new RemoteConnectionProviderMXBean() {
                      public void dumpConnectionState() {
                          doDumpConnectionState();
                      }
      
                      public String dumpConnectionStateToString() {
                          return doGetConnectionState();
                      }
                  }, new ObjectName("jboss.remoting.handler", "name", connectionProviderContext.getEndpoint().getName() + "-" + hashCode()));
              } catch (Exception e) {
                  // ignore
              }
      

      This registration is never removed - leading to objects building up over time.

              dlloyd@redhat.com David Lloyd
              rhn-support-dgrove Doug Grove (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: