Hi,
What i'm trying to do, eventually, is to start TOMCAT with certain java system properties set (in this case jmx setup):
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9898 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false`
)
Problem is I don't think i'm doing it right. What I'm doing is, in the command prompt window (Working in Vista 64, BTW) I use:
set CATALINA_OPTS=-Dcom.sun.management.jmxremote...
set JAVA_OPTS=-Dcom.sun.management.jmxremote...
tomcat6.exe
This doesn't seem to work since tomcat6 is not behaving as if the properties were set. To test this I used the example Notepad.Jar that comes with the java jdk. Tried to run it the same way:
set JAVA_OPTS=-Dcom.sun.management.jmxremote...
java -jar Notepad.jar
which didn't work, but this did work:
java -Dcom.sun.management.jmxremote .... -jar Notepad.jar
Since the last attempt did work I concluded that the JAVA/CATALINA_OPTS setup is incorrect.
Could someone point out what i'm doing wrong? I hope I was clear enough.
Thanks!