从非Java客户端访问JMX代理 [英] Access JMX agents from non-Java clients

查看:68
本文介绍了从非Java客户端访问JMX代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于某些集成项目,我想从非Java客户端查询 JMX 代理。

For some integration projects I would like to query JMX agents from non-Java clients.

到目前为止我找到了两个选项,ws-jmx-connector(基于Soap)和 mx4j 及其 JMX HTTP适配器,它返回XML文档响应。基于JSR 262的ws-jmx-connector似乎已不再处于活跃开发阶段。我没有尝试过MX4J所以我不知道是否可以在J2SE中使用带有标准JMX实现的HTTP适配器。

I found two options so far, ws-jmx-connector (Soap based) and mx4j and its JMX HTTP adaptor which returns XML document responses. The JSR 262 based ws-jmx-connector seems to be no longer in active development. I have not tried MX4J so I do not know if it is possible to use the HTTP adaptor with the standard JMX implementation in the J2SE.

是否有其他软件项目可以使用开放标准协议帮助非Java客户端与JMX代理连接?

Are there other software projects which can help to connect non-Java clients with JMX agents, using open standard protocols?

更新:同时我发现这个项目,一个Restful JMX Adapter。文章中还介绍了对JMX Instrumentation的RESTful访问,通过MBean属性的URI实现

Update: meanwhile I found this project, a "Restful JMX Adaptor". It is also described in the article RESTful Access to JMX Instrumentation, Via URI-fication of MBean Attributes

推荐答案

我建议 Jolokia ,这是JMX的全功能JSON / HTTP适配器。它有几个客户端库,即 jmx4perl ,它允许从perl内进行程序化JMX访问。对于Java和Javascript,也有客户端绑定。更多内容正在进行中(Scala,Groovy,Python)。安装很简单,对于Java EE容器来说,它就像部署标准Java EE战争一样简单。其他代理商(OSGi,Mule,JVM6)也可以使用。

I recommend Jolokia, which is a full featured JSON/HTTP adapter for JMX. It has several client libs, i.e. jmx4perl, which allows for programatic JMX access from within perl. For Java and Javascript there are client bindings, too. More are in the pipeline (Scala, Groovy, Python). The installation is dead easy, for a Java EE container it is as simple as deploying a standard Java EE war. Other agents (OSGi, Mule, JVM6) are available, too.

这篇关于从非Java客户端访问JMX代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆