Re: Connecting remotely via JMX

2013-08-26 Thread Tyler Durvik
The error message I receive is from JConsole, saying that it cannot connect. I am using JDK 1.7.0_25 on Windows 7 (Firewall turned off BTW). On Thu, Aug 22, 2013 at 8:43 PM, Willem jiang willem.ji...@gmail.comwrote: What's the error did you get? BTW, which version of JDK were you using?

Re: Connecting remotely via JMX

2013-08-26 Thread Christian Müller
You may use unintentionally a proxy to access your Camel JMX MBean server? Best, Christian - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member:

Re: Connecting remotely via JMX

2013-08-22 Thread Claus Ibsen
Hi Did you configure the JMX settings before you started CamelContext? This is needed for it to have effect. On Wed, Aug 21, 2013 at 7:07 PM, Tyler Durvik phangb...@gmail.com wrote: I ported my java DSL to Spring DSL and can connect using the JMX URI:

Re: Connecting remotely via JMX

2013-08-22 Thread Claus Ibsen
Before you call the .start() method on CamelContext, you can configure Camel. On Thu, Aug 22, 2013 at 2:48 PM, Mark elihusma...@gmail.com wrote: How is that done using Java DSL? I am doing mvn exec:java. On Thu, Aug 22, 2013 at 2:08 AM, Claus Ibsen claus.ib...@gmail.com wrote: Hi Did

Re: Connecting remotely via JMX

2013-08-22 Thread Tyler Durvik
Here's my Java code: public static void main(String[] args) throws Exception { CamelContext camelCtx = new DefaultCamelContext(); camelCtx.getManagementStrategy().getManagementAgent().setCreateConnector(true); camelCtx.getManagementStrategy().getManagementAgent().setUsePlatformMBeanServer(true);

Re: Connecting remotely via JMX

2013-08-22 Thread Willem jiang
What's the error did you get? BTW, which version of JDK were you using? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter:

Connecting remotely via JMX

2013-08-21 Thread Tyler Durvik
I have routes defined using Java DSL and want to connect to the JVM remotely to monitor the Camel Processors using jconsole. Is there something special that I must do in the Java DSL to enable remote JMX? Even when I'm on the same machine, jconsole can only connect when I choose the PID. The

Re: Connecting remotely via JMX

2013-08-21 Thread Claus Ibsen
Are you running standalone or in some server/container? And if so which one? On Wed, Aug 21, 2013 at 3:35 PM, Tyler Durvik phangb...@gmail.com wrote: I have routes defined using Java DSL and want to connect to the JVM remotely to monitor the Camel Processors using jconsole. Is there something

Re: Connecting remotely via JMX

2013-08-21 Thread Tyler Durvik
I am running standalone. Created the project using mvn archetype:generate and went through the steps to create a Java DSL project. On Wed, Aug 21, 2013 at 9:43 AM, Claus Ibsen claus.ib...@gmail.com wrote: Are you running standalone or in some server/container? And if so which one? On Wed,

Re: Connecting remotely via JMX

2013-08-21 Thread Tyler Durvik
Also, I am running JDK 1.7.0_25-b16 64-bit on Windows 7 Pro. On Wed, Aug 21, 2013 at 9:47 AM, Tyler Durvik phangb...@gmail.com wrote: I am running standalone. Created the project using mvn archetype:generate and went through the steps to create a Java DSL project. On Wed, Aug 21, 2013

Re: Connecting remotely via JMX

2013-08-21 Thread Tyler Durvik
I ported my java DSL to Spring DSL and can connect using the JMX URI: service:jmx:rmi:///jndi/rmi://hostname:1099/jmxrmi/camel I did add the following line in the Spring DSL: camel:jmxAgent id=jmx mbeanObjectDomainName=com.a.b.c / In the Java DSL I have the following: ManagementAgent agent =