When starting tomcat with JMX support i could add these lines :
export CATALINA_OPTS="-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=45456 \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false \
-Djava.rmi.server.hostname=somehost"
This makes it possible for me to monitor tomcat with JConsole through a SSL tunnel because i dont have direct access to that server (FW).
If i dont add last line i cant access with JConsole.
My question is now: how can i make the same thing happend in glassfish? That is, how can i monitor glassfish with JConsole on a remote host where i only can make a SSL tunnel. My quess is that there is same problme here that RMI server reads wrong hostaddress.
I tried setting this variable (-Djava.rmi.server.hostname=somehost) in "Application server" -- >"JVM Settings" --> "JVM options" but no success.
Im running Glassfish V2 build 58g
[Message sent by forum member 'marko_salonen' (marko_salonen)]
http://forums.java.net/jive/thread.jspa?messageID=258925