Connecting to JMX server in spring throws exception!

一笑奈何 提交于 2019-12-04 05:00:48

Try to add the following system properties to disable security:

 -Dcom.sun.management.jmxremote.authenticate=false
 -Dcom.sun.management.jmxremote.ssl=false 
 -Dcom.sun.management.jmxremote.port=39600 

The correct answer is to set alwaysCreate on your RMI bean like so:

    <bean id="rmiRegistry" class="org.springframework.remoting.rmi.RmiRegistryFactoryBean">
        <property name="alwaysCreate" value="true" />
    </bean>

This prevents the bean from attempting a connection to find an existing RMI registry.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!