Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-1504

DependsFieldInjector and DependsMethodInjector locate JBoss MBeanServer incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0-Beta6
    • AS 4.2.3.GA, 1.0.0-Beta3
    • None
    • None
    • Low

      DependsFieldInjector and DependsMethodInjector are locating the JBoss MBeanServer
      incorrectly which when passing -Dcom.sun.management.jmxremote, it results on trying to
      lookup the target MBean in the wrong MBean server.

      So, instead of doing this:

      MBeanServer server = (MBeanServer) MBeanServerFactory.findMBeanServer(null).get(0);

      They should be calling:

      MBeanServer server = MBeanServerLocator.locateJBoss();

            rh-ee-galder Galder ZamarreƱo
            rh-ee-galder Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: