[英]Bypassing JConsole requirement for username/password - when using a Jaas custom login module with JMX to handle authorization and authentication
[英]Jconsole Password based authentication
我正在使用JConsole访问我的应用程序MBean。 现在没有身份验证。 当用户通过Jconsole访问用户名/密码时,我想进行基于用户名/密码的认证。
我确实在Google上搜索并尝试了几种方法,但Jconsole仍然显示消息“连接失败:连接被拒绝:连接”在启动程序时,我设置了以下属性
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8222
-Dcom.sun.management.jmxremote.authenticate=true
-Dcom.sun.management.jmxremote.password.file=C:\secure\jmxremote.password
-Dcom.sun.management.jmxremote.access.file=C:\secure\jmxremote.access
-Dcom.sun.management.jmxremote.ssl=false
请帮忙。
谢谢
密码文件只能由所有者读取,否则将被忽略。 有关详细信息,请参见此链接: https : //db.apache.org/derby/docs/10.9/adminguide/radminjmxenablepwd.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.