You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Piotr Klimczak (JIRA)" <ji...@apache.org> on 2011/04/11 09:14:05 UTC

[jira] [Issue Comment Edited] (CAMEL-3849) OSGi - No possibility to enable ehcache clustering as: ehcache.xml is ignored and there is no possibility to set cacheManagerFactory described camel-cache docs

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

Piotr Klimczak edited comment on CAMEL-3849 at 4/11/11 7:12 AM:
----------------------------------------------------------------

Sorry for late answer. I was off for longer time.

Patch is fully working. Tested using junit and a real world servicemix 4.3.1 scenerio.
Patch was made to version apache-camel-2.6.0-fuse-00-00.

What was fixed:
* ehcache.xml file in now loaded, no more "No configuration found. Configuring ehcache from ehcache-failsafe.xml" logs.
* ability to set property cacheManagerFactory via spring bean ref. using "#"

What's new:
* test case testing setting cacheManagerFactory via spring ref.

Have a FUN!

Greetings
Piotr

      was (Author: nannou9):
    Sorry for late answer. I was off for longer time.

Patch is fully working. Tested using junit and i real world servicemix 4.3.1 scenerio.
Patch was made to version apache-camel-2.6.0-fuse-00-00.

What was fixed:
* ehcache.xml file in now loaded, no more "No configuration found. Configuring ehcache from ehcache-failsafe.xml" logs.
* ability to set property cacheManagerFactory via spring bean ref. using "#"

What's new:
* test case testing setting cacheManagerFactory via spring ref.

Have a FUN!

Greetings
Piotr
  
> OSGi - No possibility to enable ehcache clustering as: ehcache.xml is ignored and there is no possibility to set cacheManagerFactory described camel-cache docs
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-3849
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3849
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cache
>    Affects Versions: 2.6.0, 2.7.0
>         Environment: Apache ServiceMix 4.3.1-fuse-01-09
>            Reporter: Piotr Klimczak
>              Labels: cacheManagerFactory, camel-cache, cluster, clustering, osgi
>             Fix For: 2.8.0
>
>         Attachments: camel-cache.cmf.fix.patch
>
>
> This bug is caused by more than one problem as:
> 1. camel-cache bundle provides ehcache.xml config which is ignored so then default ehcache-failsafe.xml is taken by ehcache bundle.
> 2. according to camel-cache docs there is a way to set cacheManagerFactory but it seems to be not implemented as
> a) default CacheManagerFactory instance is created when when CacheComponent is instantiated.
> b) setter method: public void setCacheManagerFactory(CacheManagerFactory cacheManagerFactory) is used just nowhere.
> c) there is no suitable filed in class CacheConfiguration
> All above problems cause camel-cache to be not able to work in java- clustered world as default failsafe config. is really failsafe- w/o clustering.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira