I am developing offline Spring3.1.
I am trying to connect my application remotely via jconsole. It works locally, but when I deploy my application to a Linux machine, it gets time.
I use Daemon to run my environment.
this is what i add to the run.sh script:
-Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=6969 \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=false \ com.mypackage.daemon.FixDaemon
and inside applicationContext.xml:
<context:mbean-server /> <context:mbean-export />
now on linux machine after running netstat, what we see:
[ root@ logs]
therefore it seems that he is listening.
but when I add my ip: 6969 inside the jconsole interface, I get a popup with an error message.
any idea what am i doing wrong?
thanks, rays.
source share