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/08 16:14:05 UTC

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

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.7.0, 2.6.0
         Environment: any
            Reporter: Piotr Klimczak


This bug seems to be 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 not suitable filed in class CacheConfiguration

All above problems cause camel-cache to be not able to work in java- clustered world.


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

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

Posted by "Piotr Klimczak (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Piotr Klimczak updated CAMEL-3849:
----------------------------------

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


  was:
This bug seems to be 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 not 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.



> 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: any
>            Reporter: Piotr Klimczak
>              Labels: cacheManagerFactory, camel-cache, cluster, clustering, osgi
>
> 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

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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-3849:
-------------------------------

                Labels: cacheManagerFactory camel-cache cluster clustering osgi  (was: cacheManagerFactory camel-cache cluster clustering)
    Remaining Estimate:     (was: 3h)
     Original Estimate:     (was: 3h)

> 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: any
>            Reporter: Piotr Klimczak
>              Labels: cacheManagerFactory, camel-cache, cluster, clustering, osgi
>
> This bug seems to be 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 not 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

[jira] [Updated] (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

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp updated CAMEL-3849:
-------------------------------

    Fix Version/s: 2.7.3

> 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
>            Assignee: Claus Ibsen
>              Labels: cacheManagerFactory, camel-cache, cluster, clustering, osgi
>             Fix For: 2.7.3, 2.8.0
>
>         Attachments: camel-cache.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

        

[jira] [Reopened] (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

Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hadrian Zbarcea reopened CAMEL-3849:
------------------------------------


Piotr,

Thanks for the patch. We do not close an issue until the patch is reviewed, applied and documentation updated. The reason is that if it's marked closed, we may not realized that there is still work to be done for an issue.

> 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

[jira] [Commented] (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

Posted by "Piotr Klimczak (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018222#comment-13018222 ] 

Piotr Klimczak commented on CAMEL-3849:
---------------------------------------

Thanks Hadrian,

i will remember about that in future. This is my 1st patch to apache. But I'm sure not the last one :).
According to the patch, i haven't got much time (spent just few hours most on analyzing camel source code) but i did my best to make just a little, easy to review changes.

> 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

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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018048#comment-13018048 ] 

Claus Ibsen commented on CAMEL-3849:
------------------------------------

Piotr can you upload your patch so we can get it fixed?

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

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

Posted by "Edstrom Johan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017754#comment-13017754 ] 

Edstrom Johan commented on CAMEL-3849:
--------------------------------------

Just a question, but have you tried attaching the ehcache.xml file you want as a fragment bundle?


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

[jira] [Commented] (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

Posted by "Piotr Klimczak (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018245#comment-13018245 ] 

Piotr Klimczak commented on CAMEL-3849:
---------------------------------------

Thanks! Great! Now i know where to look for tests and where to place them :)

> 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
>            Assignee: Claus Ibsen
>              Labels: cacheManagerFactory, camel-cache, cluster, clustering, osgi
>             Fix For: 2.8.0
>
>         Attachments: camel-cache.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

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

Posted by "Piotr Klimczak (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017781#comment-13017781 ] 

Piotr Klimczak commented on CAMEL-3849:
---------------------------------------

Haven't tried with fragment. But have tried with ?cacheMana... but it faild.
This is because: c) there is no suitable filed in class CacheConfiguration

I have already fixed the problem.
Will upload the patch file soon.

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

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

Posted by "Edstrom Johan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017756#comment-13017756 ] 

Edstrom Johan commented on CAMEL-3849:
--------------------------------------

Also, cacheManagerFactory is used as an option via ?cacheManagerFactory=theBean in the registry (spring/jndi/simple registry) so that method is used via the normal field resolution in Camel as far as I can see.

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

[jira] [Commented] (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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018242#comment-13018242 ] 

Claus Ibsen commented on CAMEL-3849:
------------------------------------

Yeah see
https://svn.apache.org/repos/asf/camel/trunk/tests/

We have karaf = just testing a bundle can be deployed
And then osgi = full unit test with pax-exam

> 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
>            Assignee: Claus Ibsen
>              Labels: cacheManagerFactory, camel-cache, cluster, clustering, osgi
>             Fix For: 2.8.0
>
>         Attachments: camel-cache.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

[jira] [Updated] (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

Posted by "Piotr Klimczak (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Piotr Klimczak updated CAMEL-3849:
----------------------------------

    Attachment: camel-cache.patch

changed eols to Windows

> 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
>            Assignee: Claus Ibsen
>              Labels: cacheManagerFactory, camel-cache, cluster, clustering, osgi
>             Fix For: 2.8.0
>
>         Attachments: camel-cache.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

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

Posted by "Piotr Klimczak (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Piotr Klimczak updated CAMEL-3849:
----------------------------------

    Environment: Apache ServiceMix 4.3.1-fuse-01-09  (was: any)

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

[jira] [Assigned] (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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-3849:
----------------------------------

    Assignee: Claus Ibsen

> 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
>            Assignee: Claus Ibsen
>              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

[jira] [Commented] (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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018259#comment-13018259 ] 

Claus Ibsen commented on CAMEL-3849:
------------------------------------

Yeah we love more osgi tests, so please fell free to copy the unit test file and do a 2nd test. I like when we have multiple tests. Some are simple and others more complicated.

Then create a new ticket and attach the patch / unit test, and remember to [x] in grant license to apache.

> 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
>            Assignee: Claus Ibsen
>              Labels: cacheManagerFactory, camel-cache, cluster, clustering, osgi
>             Fix For: 2.8.0
>
>         Attachments: camel-cache.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

[jira] [Updated] (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

Posted by "Piotr Klimczak (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Piotr Klimczak updated CAMEL-3849:
----------------------------------

    Attachment: camel-cache.cmf.fix.patch

Fixed loading ehcache.xml and fixed setting cacheManagerFactory property via endpoint URI

> 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

[jira] [Updated] (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

Posted by "Piotr Klimczak (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Piotr Klimczak updated CAMEL-3849:
----------------------------------

    Comment: was deleted

(was: No additional comment is needed :) Take a look above.)

> 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

[jira] [Commented] (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

Posted by "Piotr Klimczak (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018241#comment-13018241 ] 

Piotr Klimczak commented on CAMEL-3849:
---------------------------------------

I was thinking about adding an osgi test. But was not sure what testing framework you are using. Pax Exam maybe?- this is the one i use.

> 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
>            Assignee: Claus Ibsen
>              Labels: cacheManagerFactory, camel-cache, cluster, clustering, osgi
>             Fix For: 2.8.0
>
>         Attachments: camel-cache.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

[jira] [Commented] (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

Posted by "Piotr Klimczak (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018256#comment-13018256 ] 

Piotr Klimczak commented on CAMEL-3849:
---------------------------------------

I see there is only a basic osgi test. Do you want me to write additional osgi test (or extend your) that will test my patch? Then include it to the patch file? It could check is the ehcache.xml file really loaded instead of ehcache-failsafe.xml. As you know loading ehcache.xml is not so obvious with osgi classloaders so it could be helpful, especially for future changes.

> 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
>            Assignee: Claus Ibsen
>              Labels: cacheManagerFactory, camel-cache, cluster, clustering, osgi
>             Fix For: 2.8.0
>
>         Attachments: camel-cache.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

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

Posted by "Piotr Klimczak (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Piotr Klimczak updated CAMEL-3849:
----------------------------------

    Description: 
This bug seems to be 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 not 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.


  was:
This bug seems to be 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 not suitable filed in class CacheConfiguration

All above problems cause camel-cache to be not able to work in java- clustered world.



> 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: any
>            Reporter: Piotr Klimczak
>              Labels: cacheManagerFactory, camel-cache, cluster, clustering
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> This bug seems to be 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 not 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

[jira] [Updated] (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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-3849:
-------------------------------

    Fix Version/s: 2.8.0
          Summary: OSGi - No possibility to enable ehcache clustering as: ehcache.xml is ignored and there is no possibility to set cacheManagerFactory described camel-cache docs  (was: No possibility to enable ehcache clustering as: ehcache.xml is ignored and there is no possibility to set cacheManagerFactory described camel-cache docs)

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

[jira] [Updated] (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

Posted by "Piotr Klimczak (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Piotr Klimczak updated CAMEL-3849:
----------------------------------

    Attachment:     (was: camel-cache.cmf.fix.patch)

> 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
>            Assignee: Claus Ibsen
>              Labels: cacheManagerFactory, camel-cache, cluster, clustering, osgi
>             Fix For: 2.8.0
>
>         Attachments: camel-cache.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

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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017472#comment-13017472 ] 

Claus Ibsen commented on CAMEL-3849:
------------------------------------

Please dont add any estimates. They just distract.

> 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: any
>            Reporter: Piotr Klimczak
>              Labels: cacheManagerFactory, camel-cache, cluster, clustering, osgi
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> This bug seems to be 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 not 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

[jira] [Resolved] (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

Posted by "Piotr Klimczak (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Piotr Klimczak resolved CAMEL-3849.
-----------------------------------

    Resolution: Fixed

No additional comment is needed :) Take a look above.

> 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

[jira] [Commented] (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

Posted by "Piotr Klimczak (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018260#comment-13018260 ] 

Piotr Klimczak commented on CAMEL-3849:
---------------------------------------

Great! Sound like a fun! Will do that soon :)

> 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
>            Assignee: Claus Ibsen
>              Labels: cacheManagerFactory, camel-cache, cluster, clustering, osgi
>             Fix For: 2.8.0
>
>         Attachments: camel-cache.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

[jira] [Commented] (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

Posted by "Piotr Klimczak (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018154#comment-13018154 ] 

Piotr Klimczak commented on CAMEL-3849:
---------------------------------------

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

[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

Posted by "Piotr Klimczak (JIRA)" <ji...@apache.org>.
    [ 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

[jira] [Resolved] (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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-3849.
--------------------------------

    Resolution: Fixed

Added osgi unit test as well.

> 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
>            Assignee: Claus Ibsen
>              Labels: cacheManagerFactory, camel-cache, cluster, clustering, osgi
>             Fix For: 2.8.0
>
>         Attachments: camel-cache.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