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

Grzegorz Grzybek commented on CAMEL-7195:
-----------------------------------------

I've added a little bit of logging:

defaults (no camel-cache component {{configurationFile}} set):
{noformat}
2014-02-13 08:59:34,885 [main           ] INFO  DefaultCacheManagerFactory     
- Creating CacheManager using Ehcache defaults
2014-02-13 08:59:34,885 [main           ] WARN  ConfigurationFactory           
- No configuration found. Configuring ehcache from ehcache-failsafe.xml  found 
in the classpath: 
jar:file:/home/ggrzybek/.m2/repository/net/sf/ehcache/ehcache/2.8.0/ehcache-2.8.0.jar!/ehcache-failsafe.xml
{noformat}

{{configurationFile}} set:
{noformat}
2014-02-13 09:00:52,774 [main           ] INFO  DefaultCacheManagerFactory     
- Creating CacheManager using camel-cache configuration: 
classpath:test-ehcache.xml
{noformat}


> Default ehcache.xml configure from camel-cache jar should not rely on 
> multicast 
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-7195
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7195
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-cache
>    Affects Versions: 2.10.3
>            Reporter: Joe Luo
>            Assignee: Grzegorz Grzybek
>             Fix For: 2.12.3, 2.13.0
>
>
> Camel-cache component has a default ehcache.xml file embedded and it is used 
> for configuring ehcache. It configures a cacheManagerPeerProviderFactory to 
> use a built-in RMI-based distribution system by default which unfortunately 
> relies on multicast:
> {code}
> <cacheManagerPeerProviderFactory         
> class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
>             properties="peerDiscovery=automatic,
>                         multicastGroupAddress=230.0.0.1,
>                         multicastGroupPort=4446, timeToLive=1"
>             propertySeparator=","
>             />
> {code}
> It sometimes causes a problem when deploying a camel cache route due to 
> multicast/network configuration on it's host. 
> We should not rely on multicast in default ehcache configuration that is 
> enforced by ehcache.xml from camel-cache component jar. We should either 
> remove it from the jar to allow fallback to ehcache-failsafe.xml file from 
> ehcache library or modify the embedded ehcache.xml to avoid relying on 
> multicast.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to