Re: adding mx4j's connector class to factory list
Blaine Simpson <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.devel |
|---|---|
| Message-ID | <[email protected]> |
Bordet, Simone wrote: > 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 ? I'm using Tomcat 5, which comes with R.I. (and croaks if you remove it). The classloaders see some R.I. classes first (probably because Tomcat has already accessed some, because otherwise the war-bundled libraries should be accessed first). That's why I need some way to tell it to use mx4j. > 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. That's probably exactly what I need. I couldn't find that in docs. I should get around to testing that in a couple hours. >>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 ? No. I can't open it up to the public because nothing is under a security manager yet (that's the next step). If your suggestion above doesn't fix things, maybe I could get your IP addr or password protect the site and give you an account. > Simon -- Don't pray in my school, and I won't think in your church. ICF: 703-934-3692 Cell: 703-944-9317 ------------------------------------------------------- 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_id=1470&alloc_id=3638&op=click