0 Replies Latest reply on Mar 20, 2007 6:34 PM by Marcel Marcel

    JMX conflict when embedding

    Marcel Marcel Newbie

      Hello,

      i have a problem to embed jboss/EJB3 into my application.

      As my application uses a lot of JMX it does on startup:

      java.lang.management.ManagementFactory.getPlatformMBeanServer();


      This leads a bit later on startup of embedded jboss

      org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:235)
      ...
      org.jboss.ejb3.KernelAbstractionFactory.getMBeanServer

      to

      javax.naming.NameNotFoundException: jmx not bound

      If i remove the ManagementFactory.getPlatformMBeanServer() in my application embedded jboss works fine.

      Is there a known solution so that the JMX can coexsist?

      Thank you

      Marcel

      (The jars used are from jpwh-gettingstarted-061110 with JDK1.5 on Linux)