[jboss-user] [Management, JMX/JBoss] - getting a Controller

jfrederic.clere@jboss.com do-not-reply at jboss.com
Fri Apr 13 05:50:40 EDT 2007

I am trying to get a Controller to call: IncompleteDeploymentsBuilder.build(mainDeployer, controller);

What should I do to get the controller.
I have tried:
      MBeanServer server = MBeanServerLocator.locateJBoss();
      Kernel kernel = (org.jboss.kernel.Kernel) server.getAttribute(ServiceControllerMBean.OBJECT_NAME, "kernel");
      controller = kernel.getController();
Of the getAttribute throws "javax.management.AttributeNotFoundException: not found: kernel"

any hints?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037010#4037010

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037010

More information about the jboss-user mailing list