I created a osgi bundle from jmxremote_optional. So there are different classloaders in place.
Putting the jar in a lib dir is probably a simple solution. Will try that.

Christian


Am 31.08.2011 17:48, schrieb Jacques-Olivier Goussard:
Not sure why this doesn't work.
I've an OSGi bundle that contains
./lib/jmxremote_optional.jar
and I start my JMX connector with
url = new JMXServiceURL("service:jmx:jmxmp://localhost:50666");
JMXConnectorServerFactory.newJMXConnectorServer(url, new
HashMap<String, String>(),

      myMBeanServer);
This works perfectly in my case. What are you doing differently ?
           /jog


On Wed, Aug 31, 2011 at 11:23 AM, Christian Schneider
<[email protected]>  wrote:
Hi all,

I am porting some jmx code to OSGi.

The code wants to offer a remote jmx connector using the jmxmp protocol.
This is implemented in the jmxremote_optional.jar in the jdk.
The problem is that the jmx impl scans the class path META-INF/services for
protocol implementations. This does not work in OSGi.

So I guess I either have to tweak the classpath or have to add the protocol
programmatically.

Did anyone already do one of the variants for remote jmx and can help me get
this working?

Christian

--
--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Division http://www.talend.com



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to