基于 HTML 的开源 JMX 客户端?

发布于 2024-10-08 15:21:31 字数 692 浏览 0 评论 0原文

我正在寻找一个基本库来提供 JMX MBean 的 HTML 视图,我可以将其嵌入到我的 Java 应用程序中。听起来 Sun 的 com.sun.jdmk.comm.HtmlAdaptorServer 符合要求(参考此处)。然而,该工具似乎在某种程度上受到许可限制......

我所需要的只是像参考文章中那样的基本 Web UI: < /a>
(来源:
sun.com

我我正在运行 servlet 容器 (Jetty),因此该库可以部署为 WAR。但我也不关心它是否只是打开自己的套接字。

我看过 jManage,但它似乎不是为嵌入式使用而设计的。

有什么建议吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

花开柳相依 2024-10-15 15:21:31

JMinix 非常酷并且看起来非常最新。 UI 并不真正深入,但它可以轻松嵌入到任何 servlet 容器中,并将 JMX 作为 REST 公开。

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

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/

2024-10-15 15:21:31

我使用 MX4J 多年。它可靠且功能齐全,是一个非常好的开源项目。

但是,我现在不推荐它,因为

  1. 它没有得到积极维护,
  2. 它与 Java 5/6 不太适合。

为了充分利用它,您需要使用 XDoclet 生成注释,并且需要将其包含在 bootclasspath 中。如果将其包含在 bootclasspath 中,则无法使用 JConsole,因为它会覆盖 JVM 附带的 JMX 例程。

为什么不能使用 Open JDK / Open DMK Http 适配器?毕竟 OpenJDK 是基于 GPL 的 - 不是吗?

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?

简单气质女生网名 2024-10-15 15:21:31

查看 MX4J HTTP 适配器。不幸的是,它没有打包为 WAR,但我认为它会满足您的需求。

//尼古拉斯

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文