问题描述
对于某些集成项目,我想从非Java客户端查询代理。
For some integration projects I would like to query JMX agents from non-Java clients.
到目前为止我找到了两个选项,ws-jmx-connector(基于Soap)和及其,它返回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的全功能JSON / HTTP适配器。它有几个客户端库,即,它允许从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代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!