我如何在spring web应用上使用jmx打开认证?spring jmx认证
0
A
回答
0
请看看这里是几乎是我工作的一个解决方案:
http://forum.springsource.org/showthread.php?t=73677
唯一悬而未决的问题是如何使身份验证时,JMX客户端使用服务器的连接和做的时候安全操作。
0
<bean id="serverConnector" class="org.springframework.jmx.support.ConnectorServerFactoryBean">
<property name="objectName" value="connector:name=rmi" />
<property name="serviceUrl" value="service:jmx:rmi:///jndi/rmi://:9875/jmxrmi" />
<property name="environment">
<map>
<entry key="jmx.remote.x.password.file" value="C:\Java\jdk1.7.0_79\jre\lib\management\jmxremote.password" />
<entry key="jmx.remote.x.access.file" value="C:\Java\jdk1.7.0_79\jre\lib\management\jmxremote.access" />
</map>
</property>
</bean>
+0
你能否提供一些解释给你的答案? – bish 2015-08-03 05:44:13
0
SpringConfig
<bean id="annotationTestMBean" class="com.greenline.appservice.web.bean.AnnotationTestMBean"/>
<!-- Spring JMX 配置 begin -->
<bean id="registry" class="org.springframework.remoting.rmi.RmiRegistryFactoryBean">
<property name="port" value="9875" />
<property name="alwaysCreate" value="true" />
</bean>
<bean id="serverConnector" class="org.springframework.jmx.support.ConnectorServerFactoryBean">
<property name="objectName" value="connector:name=rmi" />
<property name="serviceUrl" value="service:jmx:rmi:///jndi/rmi://192.168.214.63:9875/myconnector" />
<!--jmxmp协议
<property name="objectName" value="connector:name=jmxmp" />
<property name="serviceUrl" value="service:jmx:jmxmp://192.168.214.63:9875" />
-->
<property name="environment">
<!-- the following is only valid when the sun jmx implementation is used -->
<map>
<entry key="jmx.remote.x.password.file" value="C:\Java\jdk1.7.0_79\jre\lib\management\jmxremote.password" />
<entry key="jmx.remote.x.access.file" value="C:\Java\jdk1.7.0_79\jre\lib\management\jmxremote.access" />
</map>
</property>
</bean>
<context:mbean-export registration="replaceExisting"/>
<!-- Spring JMX 配置 end-->
你可以看到访问&密码文件 JDK_PATH \ JRE \ LIB \管理\ jmxremote.password JDK_PATH \ JRE \ LIB \管理\ jmxremote.access
JMX and Spring Part1-3 http://www.javacodegeeks.com/2012/07/jmx-and-spring-part-1.html
oracl电子远程管理应用程序(jmx) http://docs.oracle.com/cd/E19698-01/816-7609/6mdjrf861/index.html
相关问题
- 1. Spring JMX拦截
- 2. Spring Security认证
- 3. Spring JMX MBeans,JBoss ListenerService
- 4. spring启动tomcat J2EE预认证认证
- 5. Spring Security Database认证
- 6. Spring CORE Spring CORS安全认证问题
- 7. Spring JMX。通过XML设置默认值@ManagedAtrribute通过XML
- 8. Spring安全认证问题
- 9. Spring安全认证决定
- 10. 自定义Spring Security认证
- 11. grails spring security post认证
- 12. Apache CXF + Spring:简单证书认证
- 13. JMX or not to JMX
- 14. Spring JMX - 导出键值对映射
- 15. Spring中的@ManagedOperation的名称JMX
- 16. JMX-Spring - 什么时候播出'JMXNotification'?
- 17. 无法使Spring JMX NotificationListener工作
- 18. JNDI,Spring和JMX之间的关系
- 19. 使用ehcache的Spring实现配置JMX?
- 20. spring jmx更改属性文件
- 21. Spring Security认证管理问题
- 22. REST风格的webservice + Spring令牌认证
- 23. Spring安全认证日志记录
- 24. 的Spring Security X.509预认证
- 25. Spring Security有条件的基本认证
- 26. 定制认证覆盖Spring Security
- 27. Spring安全认证忽略密码
- 28. 通过URL进行Spring安全认证
- 29. spring-security:无认证的授权
- 30. Spring REST服务,注册用户,认证
这太模糊了。如果你不想被忽视,你需要做得更好。 – skaffman 2010-12-07 16:16:34