Dynamic code downloading to OpenJMS server?

crawford-T65mwrA/[email protected]
Newsgroups gmane.comp.java.openjms.devel
Message-ID <[email protected]>
I have recently integrated MX4J (an open source JMX solution) into our project, which also uses OpenJMS. Since the OpenJMS server provides the JNDI naming service, I am attempting to bind the RMI adaptor for JMX through that naming service (as opposed to starting a second naming service, which is how I did the initial integration). Unfortunately, the OpenJMS server throws a ClassNotFoundException because the stub for the class (RMIAdaptor_stub) is not on the classpath of the OpenJMS server. I can modify the startup script for the OpenJMS server, but we are trying to use OpenJMS "as is," to allow us to more quickly migrate to new releases as they come out. As I understand it, if I set the java.rmi.server.codebase property in the Properties that I use to create my InitialContext, the bind() call should direct the OpenJMS server to use the URL to download the
required class. Right? I can't seem to get this to work, so I wanted to 1) g!
et verification that my approach is supported and 2) ask if anyone has a code fragment of a working example.

Thanks!

-- Jonathan Crawford

-------------------
Email sent using WebEmail
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.