I'm trying to get JConsole connected to the remote Slave EAP instance. It runs in Domain mode.
I'm able to connect to the Master Host Controller and Slave Host Controller through the native management ports , but not the Slave instance through port 4447+offset
.
I created Application User with role SuperUser
(and superuser
too)
I set JMX subsystem in domain.xml as
<subsystem xmlns="urn:jboss:domain:jmx:1.3">
<expose-resolved-model/>
<expose-expression-model/>
<remoting-connector use-management-endpoint="false"/>
<sensitivity non-core-mbeans="true"/>
</subsystem>
with no success.
Then I tried tu se simple JMX client and was able to see that user is authenticated and connection established, but when I tried to get a count of MBeans it returns 0.
I can see available JMX Domains from the connection, but not any MBeans.
Code snippet from Java client:
JMXConnector jmxConnector = JMXConnectorFactory
.connect(serviceURL, env);
MBeanServerConnection connection = jmxConnector
.getMBeanServerConnection();
// Invoke on the JBoss AS MBean server
int count = connection.getMBeanCount();
System.out.println("MBeanCount:" + count);
System.out.println("Domains:" + Arrays.toString(connection.getDomains()));
Output:
MBeanCount:0
Domains:[jboss.as, jboss.as.expr, jboss.jsr77, java.util.logging, org.switchyard.admin, jboss.ws, jboss.msc, jboss.jta, java.nio, jgroups, JMImplementation, com.oracle.jdbc, java.lang, com.sun.management, org.apache.camel, jboss.infinispan, jboss.modules]
What step did I miss in configuration?
Thanks.