Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Not sure if you <strong><em>cannot</em></strong> connect to WebSphere7 JMX, or you <strong><em>can</em></strong> connect but do not see your exported MBeans. If it is the latter, I suspect you may be looking at the wrong MBeanServer instance, since WAS technically has more than one running.</p> <p>Either way, to bypass all that nonsense, your best bet is to add a <a href="http://www.docjar.com/docs/api/javax/management/remote/JMXConnectorServer.html" rel="nofollow">JMXConnectorServer</a> definition in your Spring XML. That way, you control exactly how the JMX connections should be made, and it will use the standard J2SE RMI remoting, so you know your JConsole will connect to it easily.</p> <p>Here's an example:</p> <pre><code>&lt;bean id="MBeanServer" class="org.helios.jmx.util.MBeanServerFactory" lazy-init="false" factory-method="createMBeanServer"&gt; &lt;constructor-arg type="java.lang.String" value="DefaultDomain" /&gt; &lt;/bean&gt; &lt;bean id="MBeanServerJMXUrl" class="javax.management.remote.JMXServiceURL" lazy-init="false"&gt; &lt;constructor-arg type="java.lang.String" value="service:jmx:rmi:///jndi/rmi://localhost:8003/jmxrmi" /&gt; &lt;/bean&gt; &lt;bean id="RMIRegistry" class="java.rmi.registry.LocateRegistry" lazy-init="false" factory-method="createRegistry"&gt; &lt;constructor-arg value="8003" /&gt; &lt;/bean&gt; &lt;bean id="MBeanServerConnector" class="javax.management.remote.JMXConnectorServerFactory" lazy-init="false" init-method="start" factory-method="newJMXConnectorServer" depends-on="RMIRegistry"&gt; &lt;constructor-arg ref="MBeanServerJMXUrl" /&gt; &lt;constructor-arg&gt; &lt;map/&gt; &lt;/constructor-arg&gt; &lt;constructor-arg ref="MBeanServer" /&gt; &lt;/bean&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload