You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by eliotc <el...@macquarie.com> on 2011/11/21 08:04:13 UTC

JMX issue when using Camel in ServiceMix

Hi,

I tried the camel-osgi example from the examples directory under ServiceMix
distribution package. It works just fine, however, I can't seem to get JMX
working as I normally do with Camel running as a standalone process. I add
the following line in the <camelContext> element:

/<jmxAgent id="agent" createConnector="true"  registryPort="22006"/>/

I can telnet this port 22006. However, Jconsole failed to the Camel instance
deployed onto ServiceMix. Can you please share any insights to this?

Cheers,

Eliot

--
View this message in context: http://camel.465427.n5.nabble.com/JMX-issue-when-using-Camel-in-ServiceMix-tp5009646p5009646.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JMX issue when using Camel in ServiceMix

Posted by eliotc <el...@macquarie.com>.
Hi Craig,

Thanks for your reply!

The root cause of my problem is that I forgot to put in JMX username and
password :-(

Cheers,

Eliot

--
View this message in context: http://camel.465427.n5.nabble.com/JMX-issue-when-using-Camel-in-ServiceMix-tp5009646p5015411.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JMX issue when using Camel in ServiceMix

Posted by Craig Taylor <ct...@ctalkobt.net>.
On Mon, Nov 21, 2011 at 6:26 PM, eliotc <el...@macquarie.com> wrote:
>
> */service:jmx:rmi:///jndi/rmi://futsydapd03:1099/jmxrmi/*
>
> The only thing I CAN do is connect to org.apache.karaf.main.Main when I ran
> ServiceMix locally (Windows), however, it does not seem to be that useful:
>
> http://camel.465427.n5.nabble.com/file/n5012031/jmx_local.jpg
>

Try connecting to karaf-root instead of jmxrmi ... Under servicemix
the name is configured under
/etc/org.apache.felix.karaf.management.cfg in serviceUrl.

-- 
-------------------------------------------
Craig Taylor
ctalkobt@ctalkobt.net

Re: JMX issue when using Camel in ServiceMix

Posted by eliotc <el...@macquarie.com>.
Hi JB,

Thanks for your prompt reply!

I don't have to create a dedicated registry for camel as long as I can still
see camel routes through ServiceMix/Karaf MBeanService/registry. However, I
am not able to verify this because the default ServiceMix JMX connector URI
does not work neither:

*/service:jmx:rmi:///jndi/rmi://futsydapd03:1099/jmxrmi/*

The only thing I CAN do is connect to org.apache.karaf.main.Main when I ran
ServiceMix locally (Windows), however, it does not seem to be that useful:

http://camel.465427.n5.nabble.com/file/n5012031/jmx_local.jpg 

--
View this message in context: http://camel.465427.n5.nabble.com/JMX-issue-when-using-Camel-in-ServiceMix-tp5009646p5012031.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JMX issue when using Camel in ServiceMix

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Eliot,

Is it requirement for you to create a dedicated registry for Camel ?
You may use the ServiceMix/Karaf MBeanService/registry (on 1099 port 
number by default).

Regards
JB

On 11/21/2011 08:04 AM, eliotc wrote:
> Hi,
>
> I tried the camel-osgi example from the examples directory under ServiceMix
> distribution package. It works just fine, however, I can't seem to get JMX
> working as I normally do with Camel running as a standalone process. I add
> the following line in the<camelContext>  element:
>
> /<jmxAgent id="agent" createConnector="true"  registryPort="22006"/>/
>
> I can telnet this port 22006. However, Jconsole failed to the Camel instance
> deployed onto ServiceMix. Can you please share any insights to this?
>
> Cheers,
>
> Eliot
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/JMX-issue-when-using-Camel-in-ServiceMix-tp5009646p5009646.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com