1 Reply Latest reply on Jun 1, 2005 4:23 AM by dimitris

    How determine which configuration started?

    isidorkin

      Hi,

      I have 3 preinstalled configuration (all, default, minimal).
      One of them started.
      How I can determine which configuration started using java?

        • 1. Re: How determine which configuration started?
          dimitris

          something like:

          MBeanServer server = MBeanServerLocator.locateJBoss();
          ObjectName target = new ObjectName("jboss.system:type=ServerConfig");

          String configName = (String)server.getAttribute(target, "ServerName");

          You can browse using the jmx-console the jboss.system domain, you'll find all sorts of interesting things. Read the docs, too.