java - JMX Authentication files path in windows environment -
i trying add jmx auth in windows environment. referring : http://docs.oracle.com/javase/8/docs/technotes/guides/management/agent.html
my usecase there 100 odd desktop clients distribute via jar's. want package jmxaccess , jmxpassword file along it. initial impression (according oracle doc) need set password file in jre_home/lib/management directory. tedious each user. can please me understand if can provide custom paths in windows env. (similar unix)?
thank you.
of course, jre_home.. path default. can use cmd option like
java -dcom.sun.management.jmxremote.password.file=/location/to/my/file -dcom.sun.management.jmxremote.access.file=/location/to/my/file -jar ... com.sun.management.jmxremote.password.file: specifies location password file. if com.sun.management.jmxremote.authenticate false, property , password , access files ignored. otherwise, password file must exist , in valid format. if password file empty or nonexistent, no access allowed.
com.sun.management.jmxremote.access.file: specifies location access file. if com.sun.management.jmxremote.authenticate false, property , password , access files ignored. otherwise, access file must exist , in valid format. if access file empty or nonexistent, no access allowed. source: http://docs.oracle.com/javase/8/docs/technotes/guides/management/agent.html#gdevf
Comments
Post a Comment