camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-5940) camel-cache - Add option to cache component to easily configure ehcache XML file to load by default
Date Thu, 07 Mar 2013 08:10:13 GMT

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

Claus Ibsen commented on CAMEL-5940:
------------------------------------

Piotr, this sounds great.

If you take a look at CacheComponent it has a cacheManagerFactory option. If you take a look
at this and its source you will get an idea.

Imho we should add an option so people can easily specify the ehcache configuration file name
to use, as a String option.
We should use the ResourceHelper API from camel-core to load the resource as it handles, OSGi,
loading a file / classpath etc.

Then we can create a cache manager factory using this with the InputStream that is "the configuration
file to use". 
                
> 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
>
> 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

Mime
View raw message