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

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

OK- it's done :)

Added 5 new test cases for new functionality.
All other tests passed (incl. itest, itest-osgi).

Code was formatted using camel's standard formatter (in etc dir).

There are 2 improvements:
1. as in description of this issue- cache now can be configured with 
"configurationFile" property that points to ehcache.xml config file
2. cache component now can be instatieted as a bean which id can be used as a 
protocol in route; each instance (bean) of CacheComponent has it's own 
separated CacheManager unless user will pass his own CacheManager using 
properties.

The second functionality is a little different than described in the top of 
this page- it is doing more than requested.
So maybe due to better change management we should (me for example) create a 
new improvement, that describes that new functionality
OR
maybe we should (again me for example) change the Summary and description to 
point all other users about what is this issue.

Hope you find it useful.

Greetings,
Piotr Klimczak
                
> 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
>
>         Attachments: 0001-CAMEL-5940-implementation.patch
>
>
> 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