1

Possible Duplicate:
JConsole command line credentials

Is there a way to specify username and password for jconsole from command line? I want to start jconsole completely from command line because the host name is too long (service:jmx:rmi://serveraddress:8010/jndi/rmi://serveraddress:8000/jmxrmi) and I can't remember them.

Thanks,

Community
  • 1
  • 1
Sean Nguyen
  • 12,528
  • 22
  • 74
  • 113

1 Answers1

0

You need to write a bat file with all the parameters (or) command line like below. Something like this.

jconsole -J-Djavax.net.ssl.keyStore=value
 -J-Djavax.net.ssl.keyStorePassword=value
 -J-Djavax.net.ssl.trustStore=value
 -J-Djavax.net.ssl.trustStorePassword=value

Note: This is example, actual parameters you need should be substituted instead of these.

kosa
  • 65,990
  • 13
  • 130
  • 167