This project is read-only.

JConsole integration

Since current version, NetMX can be experimentally integrated with JConsole management client. Majority of non-exceptional cases should work in that configuration (excluding notifications). This page describes how to set up such a connection.

Preparing JConsole

First, download JSR-262 reference implementation from this site. After extracting there should be samples directory. Go to JConsole directory and execute ant build script it contains. If you don't have ant, please download it and set your path environment variable to include ant directory -- it would make things easier because you won't have to type full path to ant each time you build.

The build script should run JConsole. Check the console you used to run ant. There is a possibility you have 'wrong' JDK version (did I mention you need JDK? Sorry) and JSR-262 connector will inform you about that. You have to download JAX-WS manually and put it somewhere in the classpath.


Fiddler is the funny part of this sample. If you don't want to inspect messages exchanged between JConsole and NetMX, you can skip this part. If you do, however, start by downloading Fiddler and configuring it as a reverse proxy (using this how-to) for port 80. Run fiddler.


Jsr262Demo can be used as server in our integration sample. Just change the URL your server is using (default should be http://localhost/MBeanServer) to http://your-machine-name/MBeanServer. It allows Fiddler to intercept traffic. Run the sample and don't press enter after client code executes. You have a running NetMX server listening for JSR-262 connections.


Return to JConsole. In "New connection" window check "Remote process" and type URL of your NetMX server. Remember to modify protocol to "service:jmx:ws", machine name to localhost and port to 8888. URL should look like service:jmx:ws://localhost:8888/MBeanServer. If everything went fine, you should see two MBeans in left pane: MBeanServerDelegate and Sample. Now you can use JConsole UI to retrieve or set attribute values and invoke operations. Have fun! And don't forget to check Fiddler!

Last edited Jan 12, 2010 at 3:58 AM by SzymonPobiega, version 2


No comments yet.