Как включить аутентификацию с помощью jmx в веб-приложении весны?spring jmx authentication
ответ
Пожалуйста, посмотрите здесь решение, которое практически работает для меня:
http://forum.springsource.org/showthread.php?t=73677
Единственный нерешенный вопрос заключается в том, чтобы сделать JMX клиента использовать тот же соединение с сервером при проверке подлинности и при выполнении безопасная работа.
<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>
Не могли бы вы дать некоторые пояснения к вашему ответу? – bish 2015-08-03 05:44:13
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 и пружина 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 JMX
- 3. Spring JMX cascading/federating
- 4. Spring Загрузочный JMX ClassNotFoundException
- 5. mocking authentication spring security
- 6. Spring Boot LDAP Authentication
- 7. Spring MVC Custom Authentication
- 8. Spring LDAP Authentication
- 9. Angular2 Spring Authentication
- 10. Spring с проверкой подлинности JMX
- 11. Невозможно создать Spring JMX NotificationListener
- 12. JMX на проект Spring загрузки
- 13. Как интегрировать JMX с Spring?
- 14. spring jmx change property files
- 15. JMX-Spring - Когда транслируется «JMXNotification»?
- 16. Spring JMX MBeans, JBoss ListenerService
- 17. Spring Security HTTP Basic Authentication
- 18. LDAP Authentication - Spring Security - LdapAuthenticationProvider
- 19. Spring Social Twitter - User Authentication
- 20. Spring Загрузочной безопасности OAuth2 Authentication
- 21. Spring Security: возвращает Authentication обнулить
- 22. Spring Security Authentication Entry Point
- 23. Spring Securtiy Authentication Запомнить меня
- 24. Почему Spring Social Authentication NULL?
- 25. Spring Security Active Directoty Authentication
- 26. Spring Security pre authentication matcher
- 27. Spring 4 API Request Authentication
- 28. Как использовать Spring Ldap Authentication
- 29. jmeter spring boot actuator jmx monitor
- 30. Экспорт объектов Spring @Bean с использованием JMX
Это слишком расплывчато. Вам нужно будет сделать это лучше, если вы не хотите, чтобы вас игнорировали. – skaffman 2010-12-07 16:16:34