You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Christian Schneider <ch...@die-schneider.net> on 2011/08/31 17:23:20 UTC
Using the jmxmp jmx remote protocol in OSGi
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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Using the jmxmp jmx remote protocol in OSGi
Posted by Christian Schneider <ch...@die-schneider.net>.
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
> <ch...@die-schneider.net> 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: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Using the jmxmp jmx remote protocol in OSGi
Posted by Jacques-Olivier Goussard <jo...@gmail.com>.
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
<ch...@die-schneider.net> 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: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org