JMX/RMI and Automatic Code Downloading

There is a brief discussion of automatic code downloading in the JMX Best Practices document (http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/best-practices.jsp#mozTocId348704), but not enough to actually implement it.

Would someone be kind enough to point me to some documentation on the subject, and/or maybe provide a few pointers?

Thanks!

Steve

[395 byte] By [Steve__Ta] at [2007-10-3 10:13:27]
# 1

Hi Steve,

If you want to know more about RMI dynamic code downloading have a look at the following link:

http://download.java.net/jdk6/docs/technotes/guides/rmi/codebase.html

You should also know that you can supply a ClassLoader to both the JMXConnectorServer and JMXConnector at instantiation time in the environment map. This ClassLoader will be used by the JMX connectors to serialize/deserialize the method parameters and return values when getting and setting attributes, or invoking operations on a given MBean.

If you want to know more about how classloading works within the JMX connectors have a look at Chapter 13 "Connectors" in the JMX 1.4 specification:

http://download.java.net/jdk6/docs/technotes/guides/jmx/JMX_1_4_specification.pdf

Regards,

Luis-Miguel Alventosa

JMX Java SE development team

Sun Microsystems, Inc.

lmalventa at 2007-7-15 5:33:48 > top of Java-index,Core,Monitoring & Management...
# 2
Hi Steve,As an alternative to code downloading you should consider using OpenMBeans - or MXBeans: http://java.sun.com/developer/technicalArticles/J2SE/mxbeansbest regards,-- danielJMX, SNMP, Java, etc... http://blogs.sun.com/jmxetc
dfuchsa at 2007-7-15 5:33:48 > top of Java-index,Core,Monitoring & Management...
# 3
Thanks, gentlemen! You've been a great help... :-)Take care,Steve
Steve__Ta at 2007-7-15 5:33:48 > top of Java-index,Core,Monitoring & Management...