camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: JBoss 7.1.1 with Camel and JMXAgent
Date Fri, 22 Jun 2012 08:20:15 GMT
Hi

I assume you want JMX at runtime, as else you can disable it on Camel.

For what is worth it, you can plugin a custom JMX management agent in Camel
http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/spi/ManagementAgent.html

In case you need to do some extra leg-work to get that working with JBoss 7.

If you get something working you may want to share this back. Then we
can take that to the JBoss community, and maybe they can also do
something on their side. And if the fix is pure API from the JDK we
can possible implement / enhance this in camel-core. But if not, it
may have to on the JBoss side, etc.



On Thu, Jun 21, 2012 at 4:47 PM, Bruno Borges <bruno.borges@gmail.com> wrote:
> Hi everyone,
>
>
> I'm trying to start a Camel Context with a jmxAgent defined, and this is
> what I get in the server.log.
>
>
> Has anyone here faced this problem before?
>
>
> This is the agent configuration:
>
>
> <jmxAgent id="jmxAgent"
>
> mbeanObjectDomainName="com.m4u.infosender.jmx"
>
> usePlatformMBeanServer="true" />
>
>
> 11:24:18,804 INFO  [org.apache.camel.spring.SpringCamelContext] (MSC
> service thread 1-1) Apache Camel 2.9.2 (CamelContext: camelContext) is
> starting
>
> 11:24:18,805 INFO  [org.apache.camel.spring.SpringCamelContext] (MSC
> service thread 1-1) Tracing is enabled on CamelContext: camelContext
>
> 11:24:18,817 INFO  [org.apache.camel.management.DefaultManagementAgent]
> (MSC service thread 1-1) JMX Connector thread started and listening at:
> service:jmx:rmi:///jndi/rmi://eslovaquia:1099/jmxrmi/camel
>
> 11:24:18,821 INFO
> [org.apache.camel.management.DefaultManagementLifecycleStrategy] (MSC
> service thread 1-1) StatisticsLevel at All so enabling load performance
> statistics
>
> 11:24:18,988 ERROR [stderr] (Camel Thread 0 - JMXConnector:
> service:jmx:rmi:///jndi/rmi://eslovaquia:1099/jmxrmi/camel) Exception in
> thread "Camel Thread 0 - JMXConnector:
> service:jmx:rmi:///jndi/rmi://eslovaquia:1099/jmxrmi/camel"
> java.lang.UnsupportedOperationException: JBAS011859: Naming context is
> read-only
>
> 11:24:18,990 ERROR [stderr] (Camel Thread 0 - JMXConnector:
> service:jmx:rmi:///jndi/rmi://eslovaquia:1099/jmxrmi/camel)             at
> org.jboss.as.naming.WritableServiceBasedNamingStore.requireOwner(WritableServiceBasedNamingStore.java:126)
>
> 11:24:18,992 ERROR [stderr] (Camel Thread 0 - JMXConnector:
> service:jmx:rmi:///jndi/rmi://eslovaquia:1099/jmxrmi/camel)             at
> org.jboss.as.naming.WritableServiceBasedNamingStore.bind(WritableServiceBasedNamingStore.java:56)
>
> 11:24:18,993 ERROR [stderr] (Camel Thread 0 - JMXConnector:
> service:jmx:rmi:///jndi/rmi://eslovaquia:1099/jmxrmi/camel)             at
> org.jboss.as.naming.NamingContext.bind(NamingContext.java:221)
>
> 11:24:18,995 ERROR [stderr] (Camel Thread 0 - JMXConnector:
> service:jmx:rmi:///jndi/rmi://eslovaquia:1099/jmxrmi/camel)             at
> org.jboss.as.naming.InitialContext.bind(InitialContext.java:161)
>
> 11:24:18,998 ERROR [stderr] (Camel Thread 0 - JMXConnector:
> service:jmx:rmi:///jndi/rmi://eslovaquia:1099/jmxrmi/camel)             at
> org.jboss.as.naming.NamingContext.bind(NamingContext.java:230)
>
> 11:24:19,000 ERROR [stderr] (Camel Thread 0 - JMXConnector:
> service:jmx:rmi:///jndi/rmi://eslovaquia:1099/jmxrmi/camel)             at
> javax.naming.InitialContext.bind(InitialContext.java:400)
>
> 11:24:19,002 ERROR [stderr] (Camel Thread 0 - JMXConnector:
> service:jmx:rmi:///jndi/rmi://eslovaquia:1099/jmxrmi/camel)             at
> javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:625)
>
> 11:24:19,003 ERROR [stderr] (Camel Thread 0 - JMXConnector:
> service:jmx:rmi:///jndi/rmi://eslovaquia:1099/jmxrmi/camel)             at
> javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412)
>
> 11:24:19,005 ERROR [stderr] (Camel Thread 0 - JMXConnector:
> service:jmx:rmi:///jndi/rmi://eslovaquia:1099/jmxrmi/camel)             at
> org.apache.camel.management.DefaultManagementAgent$1.run(DefaultManagementAgent.java:423)
>
> 11:24:19,008 ERROR [stderr] (Camel Thread 0 - JMXConnector:
> service:jmx:rmi:///jndi/rmi://eslovaquia:1099/jmxrmi/camel)             at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>
> 11:24:19,010 ERROR [stderr] (Camel Thread 0 - JMXConnector:
> service:jmx:rmi:///jndi/rmi://eslovaquia:1099/jmxrmi/camel)             at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>
> 11:24:19,013 ERROR [stderr] (Camel Thread 0 - JMXConnector:
> service:jmx:rmi:///jndi/rmi://eslovaquia:1099/jmxrmi/camel)             at
> java.lang.Thread.run(Thread.java:662)
>
> 11:24:19,016 INFO
> [org.apache.camel.impl.converter.AnnotationTypeConverterLoader] (MSC
> service thread 1-1) Found 3 packages with 15 @Converter classes to load
>
> 11:24:19,029 INFO  [org.apache.camel.impl.converter.DefaultTypeConverter]
> (MSC service thread 1-1) Loaded 170 core type converters (total 170 type
> converters)
>
> 11:24:19,031 INFO
> [org.apache.camel.impl.converter.AnnotationTypeConverterLoader] (MSC
> service thread 1-1) Loaded 2 @Converter classes
>
>
> *Bruno Borges*
> (21) 7672-7099
> *www.brunoborges.com*



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message