# ----- Execute The Requested Command ----------------------------------------- # ----- JMX Config Start ----- if [ "$1" = "run" ]; then JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=192. 168.2.235 -Dcom.sun.management.jmxremote.port=15550 -Dcom.sun.management.jmxremote.authent icate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.access .file=/usr/java/jdk1.6.0_26/jre/lib/management/jmxremote.access -Dcom.sun.management.jmxre mote.password.file=/usr/java/jdk1.6.0_26/jre/lib/management/jmxremote.password" elif [ "$1" = "start" ]; then JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=192. 168.2.235 -Dcom.sun.management.jmxremote.port=15550 -Dcom.sun.management.jmxremote.authent icate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.access .file=/usr/java/jdk1.6.0_26/jre/lib/management/jmxremote.access -Dcom.sun.management.jmxre mote.password.file=/usr/java/jdk1.6.0_26/jre/lib/management/jmxremote.password" fi # ----- JMX Config End -----