问题描述
并将它们安装在Tomcat的lib目录中。现在,我如何让它使用它们,即让Tomcat接受JMXMP连接?
I've downloaded the JMXMP extensions and installed them in Tomcat's lib directory. Now, how can I make it use them, i.e. let Tomcat accept JMXMP connections?
- Oracle的示例显示如何使用代码,我必须写自己的听众,我宁愿作为最后的手段。
- 似乎不包含JMXMP支持。
- Oracle's examples show how to do it with code, for which I'd have to write my own listener, which I'd rather keep as a last resort.
- Tomcat's JMX listener does not seem to include JMXMP support.
推荐答案
我基于与所需的tomcat-catalina一样依赖:
只需要插入tomcat的server.xml:
< Listener className = javax.management.remote.extens ion.JMXMPLifecycleListenerport =5555/>
我没有足够的声誉,否则我会将此作为评论发布。
I created a mvn project based on Bart von Heukeloms' answer with the needed tomcat-catalina as provided dependency: jmxmp-lifecycle-listener
Just to be plugged in to tomcat's server.xml:
<Listener className="javax.management.remote.extension.JMXMPLifecycleListener" port="5555" />
I don't have enough reputation, otherwise I would have posted this as a comment.
这篇关于如何在Tomcat中启用JMXMP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!