Link to home
Start Free TrialLog in
Avatar of saji27
saji27

asked on

JMX with JDK1.4 - java.lang.management.ManagementFactory

Can anyone please tell me how to retrieve remote machine's JVM parameters using JMX with JDK1.4?
I have tried adding the JMX 1.2 implementation jars into the classpath of my program,
I can able to register the sample mbeans into the mbean remote server properly.

But, my requirement is to get the RuntimeMXBean(Run time VM Params) from the remote machine.
Is there any way to fetch the RuntimeMXBeans with jdk1.4?

->  I can able to fetch the RuntimeMXBeans  in JDK 1.5 through
RuntimeMXBean mxbean=ManagementFactory.getRuntimeMXBean();
(which cannot be done in JDK1.4, since java.lang.management.ManagementFactory class is not available in this version)

I have tried lots of ways to fix this, but i couldn't.
Please help me in fetching the remote JVM parameters.
Below is the my application configuration:
My Client is running on JDK1.5
Server - JDK1.4.

Thanks,
Saj







ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial