Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open source HTML-based JMX Client?

Tags:

java

jmx

I'm looking for a basic library to give an HTML view of JMX MBeans that I can embed in my Java application. It sounds like Sun's com.sun.jdmk.comm.HtmlAdaptorServer fits the bill (referenced here). However, that tool appears to be somewhat license encumbered...

A basic Web UI like that from the referenced article is all I need:
(source: sun.com)

I am running a servlet container (Jetty), so this library could deploy as a WAR. But I don't care if it simply opens up its own socket either.

I've looked at jManage, but it seems not to be designed for embedded use.

Any suggestions?

like image 305
Eric Avatar asked Dec 17 '10 18:12

Eric


2 Answers

JMinix is pretty cool and seems pretty up-to-date. The UI isn't real deep, but it embeds easily into any servlet container and exposes JMX as REST.

http://code.google.com/p/jminix/

like image 102
easel Avatar answered Oct 15 '22 08:10

easel


I used MX4J for years. It was reliable and well featured, a really good open source project.

However, I would not recommend it now because

  1. Its not being actively maintained
  2. It does not fit well with Java 5/6.

To get the best out of it you need to generate annotations with XDoclet and you need to include it on the bootclasspath. If you include it on the bootclasspath you cannot use JConsole because it overrides the JMX routines that come with the JVM.

Why can't you use the Open JDK / Open DMK Http Adaptor? After all OpenJDK is GPL based - isn't it?

like image 30
Fortyrunner Avatar answered Oct 15 '22 09:10

Fortyrunner