Comment puis-je activer l'authentification en utilisant jmx sur l'application Web de printemps?spring jmx authentication
Répondre
S'il vous plaît jeter un oeil ici pour une solution qui fonctionne presque pour moi:
http://forum.springsource.org/showthread.php?t=73677
La seule question non résolue est de savoir comment faire client JMX utiliser la même connexion au serveur lors de l'authentification et lorsque vous effectuez la opération sécurisée.
<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>
Pourriez-vous donner quelques explications à votre réponse? – bish
Veuillez mettre quelques explications à OP pour votre code. –
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-->
vous pouvez voir l'accès & fichier de mot de passe JDK_PATH \ jre \ lib \ gestion \ jmxremote.password JDK_PATH \ jre \ lib \ gestion \ jmxremote.access
JMX et Spring Part1-3 http://www.javacodegeeks.com/2012/07/jmx-and-spring-part-1.html
oracl Applications e-Remote Management (jmx) http://docs.oracle.com/cd/E19698-01/816-7609/6mdjrf861/index.html
- 1. Spring JMX MBeans, JBoss ListenerService
- 2. spring jmx change les fichiers de propriétés
- 3. Impossible de faire fonctionner Spring JMX NotificationListener
- 4. Désactiver jmx dans le réseau de courtiers activemq (spring, xbean)
- 5. JMX-Spring - Quand un 'JMXNotification' est-il diffusé?
- 6. Exportation d'objets Spring @Bean à l'aide de JMX
- 7. Comment rendre JMX simple
- 8. Webservice Authentication
- 9. asp.net windows authentication
- 10. Apache basic authentication
- 11. Java LDAP Authentication
- 12. Asp.net Membership & Authentication
- 13. Sharepoint Multi Authentication
- 14. actionscript httpservice authentication popup
- 15. Java XmlRPC Authentication
- 16. requiressl forms authentication
- 17. FBML Canvas Application Authentication
- 18. C# Winform Authentication Framework
- 19. flex - SWFLoader - authentication
- 20. Gwt-gdata authentication
- 21. .NET Forms Authentication
- 22. Cross Domain Authentication
- 23. métriques intéressants JMX
- 24. JMX - Fichiers jar minimum
- 25. jmx sécurité thread mbean
- 26. Pourquoi la console JBoss JMX n'affiche-t-elle pas les descriptions des MBeans définis par Spring?
- 27. authentification par programmation pour JMX dans Websphere
- 28. API Symfony Basic Http Authentication
- 29. ASP.Net forms authentication - plusieurs fournisseurs
- 30. Comment activer JMX dans Websphere?
C'est beaucoup trop vague. Vous devrez faire mieux que cela si vous ne voulez pas être ignoré. – skaffman