RE: adding mx4j's connector class to factory list
"Bordet, Simone" <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, > I have no problem running a standalone mx4j instance under > Tomcat 5. I specify to use mx4j by setting the system > property "javax.management.builder.initial". But when I try > to get a remote JMX connection under Tomcat 5, I am getting a > very poorly populated factory, and I don't know how to tell > it to use mx4j for the Connector. Are you using RJMXRI implementation and you want to plugin MX4J's ? Have you already tried to specify System.setProperty(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES, "mx4j.remote.provider|mx4j.tools.remote.provider"); ? That should tell the factory to use MX4J's classes. > The Connector factory API > spec is very poor in this regard compared to the Server side > factory. Here's the error that I get: > > javax.servlet.ServletException: URL path must begin with > /jndi/ or /stub/ or /ior/: This is a RJMXRI message... > My URL uses rmi, and I'm sure there is nothing wrong with my > URL because it works for the server, and it works when I use > the same URL in a standalone (non-J2EE) Java program. Can you post the URL as well ? Simon ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click