Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-241

Use the correct MBeanServer if multiple MBeanServers are present

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.3
    • 2.2.8, 2.2.9, 2.2.9.1, 2.2.9.2
    • None
    • Low

      Current code is
      ArrayList servers=MBeanServerFactory.findMBeanServer(null);
      if(servers != null && servers.size() > 0) {
      return (MBeanServer)servers.get(0);
      }

      This takes the first server it find. However, if we run JBoss (which has its own MBeanServer) inside of JDK 5 (which also has an MBeanServer), we have multiple servers. The code needs to be changes to accommodate that

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: