Spring Webアプリケーションで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
あなたのコードのOPにいくつかの説明を入れてください。 –
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とSpring Part1-3 http://www.javacodegeeks.com/2012/07/jmx-and-spring-part-1.html
oracl eリモート管理アプリケーション(jmx) http://docs.oracle.com/cd/E19698-01/816-7609/6mdjrf861/index.html
- 1. mocking authentication spring security
- 2. Spring JMXに似たJMXエクスポートフレームワークエクスポーター
- 3. Springの@ManagedOperationの名前JMX
- 4. JMX for Spring:スレッドセーフであるMBeanServerConnectionFactoryBean
- 5. tomcatとspringのアプリケーションでアクティブなjmx
- 6. Spring JMX NotificationListenerを作成できません
- 7. Spring @ManagedNotificationアノテーションを使用してJMXノーティフィケーションを生成する例
- 8. JMX-Spring - 'JMXNotification'はいつ放映されますか?
- 9. XCode、Authentication and NSUserDefaults
- 10. TTImageView with authentication
- 11. Slim Basic Authentication
- 12. Sharepoint Multi Authentication
- 13. User.Identity.Name with windows authentication
- 14. Ionic、Angular authentication
- 15. Omniture - python:keyError with authentication
- 16. Sip authentication --response value
- 17. twitter oath authentication android
- 18. squid external acl authentication
- 19. respoke api authentication error
- 20. wcf webhttp authentication
- 21. Facebook api authentication PHP
- 22. openid authentication simple consumer
- 23. JMXクライアントセッション
- 24. twisted websocket chatserver openid authentication
- 25. facebook redirect after app authentication
- 26. sql server login windows authentication
- 27. Sql server authentication問題
- 28. Windows Identity Foundation Active Authentication
- 29. Google contact api v3 authentication
- 30. なぜ、SpringはAuthenticationとUserDetailsのフィールドを重複していますか?
これはあまりにも曖昧です。もしあなたが無視されたくないのであれば、それ以上のことをする必要があります。 – skaffman