You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2009/08/07 13:54:36 UTC

[jira] Assigned: (CAMEL-1885) Stream Caching is enabled by default when using CamelContextFactoryBean

     [ https://issues.apache.org/activemq/browse/CAMEL-1885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang reassigned CAMEL-1885:
-----------------------------------

    Assignee: Willem Jiang

> 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
>          Components: camel-spring
>    Affects Versions: 2.0-M3
>            Reporter: Jens Riemschneider
>            Assignee: Willem Jiang
>             Fix For: 2.0.0
>
>
> 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.