Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7195

Default ehcache.xml configure from camel-cache jar should not rely on multicast

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.10.3
    • 2.12.3, 2.13.0
    • camel-cache
    • None
    • Unknown

    Description

      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:

      <cacheManagerPeerProviderFactory         class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
                  properties="peerDiscovery=automatic,
                              multicastGroupAddress=230.0.0.1,
                              multicastGroupPort=4446, timeToLive=1"
                  propertySeparator=","
                  />
      

      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.

      Attachments

        Activity

          People

            ggrzybek Grzegorz Grzybek
            joeluo Joe Luo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: