camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CAMEL-1885) Stream Caching is enabled by default when using CamelContextFactoryBean
Date Fri, 07 Aug 2009 13:00:35 GMT

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

Willem Jiang resolved CAMEL-1885.
---------------------------------

    Resolution: Fixed

Applied patch with thanks to Jens.
http://svn.apache.org/viewvc?rev=801982&view=rev

> 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.


Mime
View raw message