开发者

Open source HTML-based JMX Client?

开发者 https://www.devze.com 2023-01-31 16:55 出处:网络
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).Ho

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:

Open source HTML-based JMX Client?

(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.

开发者_Go百科

Any suggestions?


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/


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?


Take a look at the MX4J HTTP Adaptor. Unfortunately, it is not packaged as a WAR, but I think it will fit your needs.

//Nicholas

0

精彩评论

暂无评论...
验证码 换一张
取 消