Skip to main content

1.5 JMX and Web Start?

2 replies [Last post]
bskaarup
Offline
Joined: 2003-06-17
Points: 0

Is there a way to enable the build-in JMX in 1.5 when running my application via Web Start?

If I run my application from the command line I can supply the following VM arguments
-Dcom.sun.management.jmxremote.port=1090
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
and then I can check my application via jconsole from the JDK

As I read the jnlp description the -D parameter is considered unsafe and if I try to use them in my jnlp file it is as if they havent been set.

I use JDK build 1.5.0-rc-b63 on Windows XP Service Pack 2.

Is there a way?

/Brian

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bskaarup
Offline
Joined: 2003-06-17
Points: 0

I have allready tried that - it dosnt work.
I suppose the VM initializes the JMX at startup if the arguments are present or something.

sat1196
Offline
Joined: 2003-11-08
Points: 0

I'm sorry I don't know much about jmx but can't you just use System.setProperty("com.sun.management.jmxremote.port", "1090") ... at the beginning of your code ?
Cheers