<p>I've deployed some Managed Beans on WebSphere 6.1 and I've managed to invoke them through a standalone client, but when I try to use the application "jconsole" distributed with the standard JDK can can't make it works.</p>

<p>Has anyone achieved to connect the jconsole with WAS 6.1?</p>

<p>IBM WebSphere 6.1 it's supossed to support JSR 160 JavaTM Management Extensions (JMX) Remote API. Furthermore, it uses the MX4J implementation (<a href="http://mx4j.sourceforge.net" rel="nofollow noreferrer">http://mx4j.sourceforge.net</a>). But I can't make it works with neither "jconsole" nor "MC4J".</p>

<p>I have the Classpath and the JAVA_HOME correctly setted, so the issue it's not there.</p>

[{'answer_id': 28958, 'author': 'Bernie Perez', 'author_id': 1992, 'author_profile': 'https://Stackoverflow.com/users/1992', 'pm_score': 0, 'selected': False, 'text': '<p>I have successfully connected to ActiveMQ and ServiceMix using the JConsole. Does WAS 6.1 use Java Management Extension (JMX) technology? JMX is required for JConsole.</p>\n\n<p>If your path is set correctly it should work fine. On windows you go to System Properties -> Advanced Tab -> Environment Variables. Have your JAVA_HOME System variable set to the path of your JDK or JRE and your Path variable with %JAVA_HOME%/bin added somewhere in there. Then all you need to do is go to Start->Run->JConsole. Select the correct Process Name and your done.</p>\n\n<p>Where are you having problems at? I hope this helps.</p>\n\n<p>Edit:\nHere is the Java Doc\'s on <a href="http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html" rel="nofollow noreferrer">JConsole</a>.</p>\n'}, {'answer_id': 30996, 'author': 'Bernie Perez', 'author_id': 1992, 'author_profile': 'https://Stackoverflow.com/users/1992', 'pm_score': 0, 'selected': False, 'text': '<p>Hmm... I know that WebSphere is kind of hard to configure. Thats part of the reason we used ServiceMix for our ESB. Maybe its not enabled by default in WebSphere and you would have to turn it on in the config somewhere.</p>\n'}, {'answer_id': 170414, 'author': 'Konrad', 'author_id': 8143, 'author_profile': 'https://Stackoverflow.com/users/8143', 'pm_score': 4, 'selected': True, 'text': '<p>WebSphere\'s support for JMX is crap.  Particularly, if you need to connect to any secured JMX beans.  Here\'s an interesting tidbit, their own implementation of jConsole will not connect to their own JVM.  I have had a PMR open with IBM for over a year to fix this issue, and have gotten nothing but the runaround.  They clearly don\'t want to fix this issue.</p>\n\n<p>The only way I have been able to invoke remote secured JMX beans hosted on WebSphere has been to implement a client using the "WebSphere application client".  This is basically a stripped down app server used for stuff like this.</p>\n\n<p>Open a PMR with IBM.  Perhaps if more people report this issue, they will actually fix it. </p>\n\n<blockquote>\n  <p><strong>Update:</strong> You can run your application as a WebSphere Application Client in RAD.  Open the run menu, then choose "Run...".  In the dialog that opens, towards the bottom on the left hand side, you will see "WebSphere v6.1 Application Client".  I\'m not sure how to start and Application Client outside of RAD.</p>\n</blockquote>\n'}, {'answer_id': 221604, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>Websphere 6.1 does not support the JConsole for some reason even though it fully implements the JMS specs. Seems to be a week area at the moment. Your best bet is to look at the Admin client to implement you own console.</p>\n'}, {'answer_id': 922409, 'author': 'Flueras Bogdan', 'author_id': 83843, 'author_profile': 'https://Stackoverflow.com/users/83843', 'pm_score': 1, 'selected': False, 'text': '<p>IT WORKS !</p>\n\n<p><a href="http://issues.apache.org/jira/browse/GERONIMO-4534;jsessionid=FB20DD5973F01DD2D470FB9A1B45D209?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel" rel="nofollow noreferrer">http://issues.apache.org/jira/browse/GERONIMO-4534;jsessionid=FB20DD5973F01DD2D470FB9A1B45D209?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel</a></p>\n\n<pre><code>  1) Change the config.xml and start the server. \n</code></pre>\n\n<p>-see here how to change config.xml: <a href="http://publib.boulder.ibm.com/wasce/V2.1.0/en/working-with-jconsole.html" rel="nofollow noreferrer">http://publib.boulder.ibm.com/wasce/V2.1.0/en/working-with-jconsole.html</a></p>\n\n<pre><code> 2) start the jconsole with : jconsole -J-Djavax.net.ssl.keyStore=%GERONIMO_HOME%\\var\\security\\keystores\\geronimo-default -J-Djavax.net.ssl.keyStorePassword=secret -J-Djavax.net.ssl.trustStore=%GERONIMO_HOME%\\var\\security\\keystores\\geronimo-default -J-Djavax.net.ssl.trustStorePassword=secret -J-Djava.class.path=%JAVA_HOME%\\lib\\jconsole.jar;%JAVA_HOME%\\lib\\tools.jar;%GERONIMO_HOME%\\repository\\org\\apache\\geronimo\\framework\\geronimo-kernel\\2.1.4\\geronimo-kernel-2.1.4.jar\n</code></pre>\n\n<p>[or your version of geronimo-kernel jar]</p>\n\n<pre><code> 3) in the jconsole interface-&gt;advanced, input:\n  JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/JMXSecureConnector\n  user name: system\n  password: manager\n\n 4) click the connect button.\n</code></pre>\n'}, {'answer_id': 5049177, 'author': 'Robert Laflamme', 'author_id': 624117, 'author_profile': 'https://Stackoverflow.com/users/624117', 'pm_score': 1, 'selected': False, 'text': '<p>If you want the WebSphere MBeans this one works for me:</p>\n\n<p>The key is to configure the classpath and the security properly.</p>\n\n<p>in one line:</p>\n\n<p>jconsole -J-Dwas.install.root=C:/was61 -J-Djava.ext.dirs=C:/was61/plugins;C:/was61/plugins/com.ibm.ws.security.crypto_6.1.0;C:/was61/lib;C:/was61/java/jre/lib/ext -J-Dcom.ibm.SSL.ConfigURL="file:../../properties/ssl.client.props" -J-Dcom.ibm.CORBA.ConfigURL="file:../../properties/sas.client.props" service:jmx:iiop://host:port/jndi/JMXConnector</p>\n\n<p>where port = bootstrap port ex: (2809)</p>\n\n<p>Be careful when setting the sas and the ssl props.</p>\n\n<p>Robert</p>\n'}, {'answer_id': 10906902, 'author': 'djangofan', 'author_id': 118228, 'author_profile': 'https://Stackoverflow.com/users/118228', 'pm_score': 0, 'selected': False, 'text': '<p>You all seem to be incorrect.  I am running Websphere 6.1.041 , using JDK 1.5 , and I just started up Jconsole and used the "simple connect" tab to connect to localhost with port=0 and without a username and password and it works fine.</p>\n'}]
['https://Stackoverflow.com/questions/27598', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2937/']