`
j357777842
  • 浏览: 68274 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
最近访客 更多访客>>
社区版块
存档分类
最新评论
  • letle: 这种隐藏贴还是不要发的好
    Array类
  • ajaxgo: lz,我建议你这类纯api的东西,可以找份js api手册藏着 ...
    Array类
  • zxyyxzzxy: 不错。学到了不少东西!
    Array类
  • ajaxgo: lz是要告诉我们函数的知识,还是在问问题??话说上面那段见的眼 ...
    Function
  • afcn0: 当然不一样,函数的length在js里面是一个比较没用的东西, ...
    Function

How to configure JMX for Tomcat7 that is running behind firewall.

    博客分类:
  • java
阅读更多
1. 修改Tomcat 7的源码:org.apache.catalina.mbeans.JmxRemoteLifecycleListener. Add Getter and Setter methods for property clientAuth. update properties rmiRegistryPortPlatform and rmiServerPort humanly to rmiRegistryPort and rmiServerPort. Modify method names corresponding these properties. Delete below lines:

//        String clientAuthValue = System.getProperty(
//            "com.sun.management.jmxremote.ssl.need.client.auth", "true");
//        clientAuth = Boolean.parseBoolean(clientAuthValue);

//        String authenticateValue = System.getProperty(
//                "com.sun.management.jmxremote.authenticate", "true");

2. Package this single class to a jar file and place this jar file in Tomcat_home/lib.

3. Modify server.xml:
Add a lisener into server.xml:
<Listener className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener" rmiRegistryPort="1098" rmiServerPort="1099" authenticate="false"/>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics