I just noticed something I can't understand: In my bean, I have also this piece of code for monitoring my cache configuration:
<bean id="ehCacheManagementService" class="net.sf.ehcache.management.ManagementService" init-method="init" lazy-init="false"> <constructor-arg> <bean class="net.sf.ehcache.CacheManager" factory-method="getInstance"/> </constructor-arg> <constructor-arg> <bean class="org.springframework.jmx.support.JmxUtils" factory-method="locateMBeanServer"/> </constructor-arg> <constructor-arg value="true"/> <constructor-arg value="true"/> <constructor-arg value="true"/> <constructor-arg value="true"/> </bean> During my bundle start, I can see in the logs: 2015-11-30 11:16:01,486 | WARN | xtenderThread-30 | ConfigurationFactory | 242 - net.sf.ehcache - 2.9.1 | No configuration found 2015-11-30 11:16:01,558 | INFO | xtenderThread-30 | DefaultCacheManagerFactory | 243 - org.apache.camel.camel-cache - 2.15.3 | Creating CacheManager usin g camel-cache configuration: file:D:\\Tools\\apache-servicemix-6.0.1-DUPLICATE\\etc\\ehcache.xml However, when I look at the cache configuration created, the values are not the ones from my ehcache.xml When I remove the bean "ehCacheManagementService" and I restart the bundle, I can see in the logs: : 2015-11-30 11:19:26,318 | INFO | xtenderThread-32 | DefaultCacheManagerFactory | 243 - org.apache.camel.camel-cache - 2.15.3 | Creating CacheManager usin g camel-cache configuration: file:D:\\Tools\\apache-servicemix-6.0.1-DUPLICATE\\etc\\ehcache.xml So, no more warning "No configuration found", but I can't check if my cache configuration is OK. Is that possible that the monitoring bean I use prevent my cache from being created as per my ehcache.xml file ? -- View this message in context: http://camel.465427.n5.nabble.com/camel-cache-configurationFile-tp5774492p5774555.html Sent from the Camel - Users mailing list archive at Nabble.com.