[ 
https://issues.apache.org/jira/browse/CAMEL-5940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13611859#comment-13611859
 ] 

Piotr Klimczak commented on CAMEL-5940:
---------------------------------------

Hi Henryk,

The answer is: yes.
And also like this:
{code:title=bar.xml}
  <bean id="camelCache1" 
class="org.apache.camel.component.cache.CacheComponent">
    <property name="configurationFile" 
value="classpath:/org/apache/camel/itest/cache/ehcache_test1.xml"/>
  </bean>

  <camelContext xmlns="http://camel.apache.org/schema/spring";>
        <camel:route>
                <camel:from uri="direct:addRoute1" />
                <camel:setHeader headerName="CamelCacheOperation">
                        <camel:constant>CamelCacheAdd</camel:constant>
                </camel:setHeader>
                <camel:setHeader headerName="CamelCacheKey">
                        <camel:constant>foo</camel:constant>
                </camel:setHeader>
                <camel:to uri="camelCache1:bar" />
        </camel:route>
  </camelContext>
{code}

I'm still working with it.

Greetings,
Piotr
                
> camel-cache - Add option to cache component to easily configure ehcache XML 
> file to load by default
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5940
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5940
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-cache
>            Reporter: Claus Ibsen
>             Fix For: 2.11.1
>
>
> See
> By default ehache.xml is loaded from classpath. We should make it possible to 
> configure CacheComponent with a string option that refers to the resource to 
> load.
> Then people can do something a like:
> {code}
> <bean id="cache" class="...CacheComponent">
>   <property name="configurationFile" value="classpath:com/foo/mycache.xml"/>
> </bean>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to