In order to disable loadStatistics (to get rid of the ManagementLoadTask thread) I have set the ->
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> <jmxAgent id="agent" loadStatisticsEnabled="false"/> ... </camelContext> But when having multiple Contexts with this setting disabled, I get an rmi exception logged as a warning in the logs. (see stacktrace below). Does this mean that I have to create unique context id's for each CamelContext or is there an other way to configure this ?? I'm using camel v. 2.12.2 java.io.IOException: Cannot bind to URL [rmi://oastst20b:1099/jmxrmi/camel]: javax.naming.NameAlreadyBoundException: jmxrmi/camel [Root exception is java.rmi.AlreadyBoundException: jmxrmi/camel] at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:804) at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:417) at org.apache.camel.management.DefaultManagementAgent$1.run(DefaultManagementAgent.java:443) at java.lang.Thread.run(Thread.java:662) Caused by: javax.naming.NameAlreadyBoundException: jmxrmi/camel [Root exception is java.rmi.AlreadyBoundException: jmxrmi/camel] at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:122) at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208) at javax.naming.InitialContext.bind(InitialContext.java:400) at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:625) at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412) ... 2 more Caused by: java.rmi.AlreadyBoundException: jmxrmi/camel at sun.rmi.registry.RegistryImpl.bind(RegistryImpl.java:131) at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:390) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:248) at sun.rmi.transport.Transport.serviceCall(Transport.java:155) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359) at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source) at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:120) -- View this message in context: http://camel.465427.n5.nabble.com/disabeling-loadStatistics-tp5746709.html Sent from the Camel - Users mailing list archive at Nabble.com.