|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
Is Camel JMX feature working ?Is Camel JMX working ?
I have activated the JMX by setting the attribute useJmx in my context to "true" but when I launch my java jconsole, the screen is desperately empty even if I try to connect to the link mentioned in the blog service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi Remark : I have launched my Camel context through Eclipse using Main starter = new Main(); starter.setApplicationContextUri(spring/camelContext.xml); starter.run(args); Regards, Charles |
|
|
Re: Is Camel JMX feature working ?You should be enabilng the JMX remote param
-Dcom.sun.management.jmxremote And in your camel context.xml, make sure u have <camel:jmxAgent id="agent" createConnector="false" usePlatformMBeanServer="true"/>
|
|
|
Re: Is Camel JMX feature working ?Hi
If you read the user guide for Camel JMX http://camel.apache.org/camel-jmx.html You can see the service uri is when using the JMX connector service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi/camel And you tell Camel to create the connector by <jmxAgent id="agent" createConnector="true"/> In Java 1.6 or newer versions of 1.5 you can even see the process in the first tab (local I think it is). Which should not require to create the connector. But then you can only view it from same machine. On Wed, Sep 2, 2009 at 2:58 AM, Praveen Krishnan<praveen.krishnan@...> wrote: > > You should be enabilng the JMX remote param > > -Dcom.sun.management.jmxremote > > And in your camel context.xml, make sure u have > <camel:jmxAgent id="agent" createConnector="false" > usePlatformMBeanServer="true"/> > > > > > cmoulliard wrote: >> >> Is Camel JMX working ? >> >> I have activated the JMX by setting the attribute useJmx in my context to >> "true" >> but when I launch my java jconsole, the screen is desperately empty even >> if I try to connect to the link mentioned in the blog >> service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi >> >> Remark : I have launched my Camel context through Eclipse using >> Main starter = new Main(); >> starter.setApplicationContextUri(spring/camelContext.xml); >> starter.run(args); >> >> Regards, >> >> Charles >> > > -- > View this message in context: http://www.nabble.com/Is-Camel-JMX-feature-working---tp16963021p25250011.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 |
|
|
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.
|
|
|
Re: Is Camel JMX feature working ?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!
|
|
|
Re: Is Camel JMX feature working ?On Tue, Oct 13, 2009 at 7:17 PM, Dave Wallin <david_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. 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 |
|
|
Re: Is Camel JMX feature working ?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. |
|
|
Re: Is Camel JMX feature working ?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. |
| Free embeddable forum powered by Nabble | Forum Help |