You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Dave Wallin <da...@kaltire.com> on 2009/10/13 19:17:17 UTC

Re: Is Camel JMX feature working ?

We are using Camel 2.0 with JDK 1.5_17 without any spring configuration (pure
java).  When the Camel context starts up it logs "INFO: JMX enabled. Using
InstrumentationLifecycleStrategy."  Still, JConsole local processes is empty
and we cannot connect using the URI either...  Any ideas?  Thanks.
-- 
View this message in context: http://www.nabble.com/Is-Camel-JMX-feature-working---tp16963021p25877122.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.


Re: Is Camel JMX feature working ?

Posted by tide08 <sa...@yahoo.com>.
I believe you are just trying to use platform mbean than try setting below
jvm parameter which is required for Java 5 only:

-Djava.rmi.server.hostname=[your Ip]

Thanks!


Dave Wallin wrote:
> 
> We are using Camel 2.0 with JDK 1.5_17 without any spring configuration
> (pure java).  When the Camel context starts up it logs "INFO: JMX enabled.
> Using InstrumentationLifecycleStrategy."  Still, JConsole local processes
> is empty and we cannot connect using the URI either...  Any ideas? 
> Thanks.
> 

-- 
View this message in context: http://www.nabble.com/Is-Camel-JMX-feature-working---tp16963021p25883306.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.


Re: Is Camel JMX feature working ?

Posted by Dave Wallin <da...@kaltire.com>.
We were able to connect by setting the JMX RMI Connector the connecting using
the JMX URL:

1) -Dorg.apache.camel.jmx.createRmiConnector=True

2) service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi/camel

Thanks.
-- 
View this message in context: http://www.nabble.com/Is-Camel-JMX-feature-working---tp16963021p25896282.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.


Re: Is Camel JMX feature working ?

Posted by Dave Wallin <da...@kaltire.com>.
We tried installing the latest 1.5 jdk (1.5_21)  No luck.
We tried setting the jvm parameter -Djava.rmi.server.hostname=[your Ip]   No
luck.

How can we create a connector using pure java?
<jmxAgent id="agent" createConnector="true"/> 

Thanks.



-- 
View this message in context: http://www.nabble.com/Is-Camel-JMX-feature-working---tp16963021p25894614.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.


Re: Is Camel JMX feature working ?

Posted by Claus Ibsen <cl...@gmail.com>.
On Tue, Oct 13, 2009 at 7:17 PM, Dave Wallin <da...@kaltire.com> wrote:
>
> We are using Camel 2.0 with JDK 1.5_17 without any spring configuration (pure
> java).  When the Camel context starts up it logs "INFO: JMX enabled. Using
> InstrumentationLifecycleStrategy."  Still, JConsole local processes is empty
> and we cannot connect using the URI either...  Any ideas?  Thanks.

In the latest 1.5_20 jdk on my OSX the jconsole can finally list local
processes and I can find my Camel java app and connect to it without
any configuration at all.

Otherwise you may have to tell Camel to create a connector and use the
service URL to connect to it from jconsole.
See more at "Creating JMX RMI Connector Server" at:
http://camel.apache.org/camel-jmx.html

> --
> View this message in context: http://www.nabble.com/Is-Camel-JMX-feature-working---tp16963021p25877122.html
> Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus