Stream Caching is enabled by default when using CamelContextFactoryBean -----------------------------------------------------------------------
Key: CAMEL-1885 URL: https://issues.apache.org/activemq/browse/CAMEL-1885 Project: Apache Camel Issue Type: Bug Affects Versions: 2.0-M3 Reporter: Jens Riemschneider According to the documentation Stream Caching should be disabled by default in Camel 2.0. The default is overriden when using CamelContextFactoryBean because of this line: private Boolean streamCache = Boolean.TRUE; Unit test showing the problem: public class DefaultStreamCachingTest { @Test public void test() throws Exception { ApplicationContext appContext = new ClassPathXmlApplicationContext(new String[] {"context.xml"}); DefaultCamelContext camelContext = (DefaultCamelContext) appContext.getBean("camelContext"); assertFalse(camelContext.isStreamCacheEnabled()); } } context.xml: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camel="http://camel.apache.org/schema/spring" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> <camel:camelContext id="camelContext" /> </beans> Currently one must use: <camel:camelContext id="camelContext" streamCache="false" /> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.