You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Marco Santarelli (JIRA)" <ji...@apache.org> on 2017/05/12 00:03:04 UTC
[jira] [Updated] (CAMEL-11266) The component creates a separate
CacheManager per producer route
[ https://issues.apache.org/jira/browse/CAMEL-11266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marco Santarelli updated CAMEL-11266:
-------------------------------------
Description:
The issue becomes clear if the developers declares more than one producer route with the attached ehcache config: multiple cache managers start contention of file lock and the startup fails.
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<ehcache:config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ehcache="http://www.ehcache.org/v3"
xsi:schemaLocation="http://www.ehcache.org/v3 http://www.ehcache.org/schema/ehcache-core-3.3.xsd">
<ehcache:persistence directory="${java.io.tmpdir}/ehcache"></ehcache:persistence>
<ehcache:cache alias="cache1" uses-template="default-template">
</ehcache:cache>
<ehcache:cache alias="cache2" uses-template="default-template">
<ehcache:expiry>
<ehcache:ttl unit="minutes">60</ehcache:ttl>
</ehcache:expiry>
</ehcache:cache>
<ehcache:cache alias="cache3" uses-template="default-template">
<ehcache:expiry>
<ehcache:ttl unit="minutes">1</ehcache:ttl>
</ehcache:expiry>
</ehcache:cache>
<ehcache:cache-template name="default-template">
<ehcache:key-type>java.lang.String</ehcache:key-type>
<ehcache:value-type>java.io.Serializable</ehcache:value-type>
<ehcache:expiry>
<ehcache:none/>
</ehcache:expiry>
<ehcache:resources>
<ehcache:heap unit="entries">1000</ehcache:heap>
<ehcache:disk persistent="true" unit="MB">10</ehcache:disk>
</ehcache:resources>
</ehcache:cache-template>
</ehcache:config>
{code}
was:The issue becomes clear if the developers declares more than one producer route with the attached ehcache config: multiple cache managers start contention of file lock and the startup fails.
> The component creates a separate CacheManager per producer route
> ----------------------------------------------------------------
>
> Key: CAMEL-11266
> URL: https://issues.apache.org/jira/browse/CAMEL-11266
> Project: Camel
> Issue Type: Bug
> Components: camel-ehcache
> Affects Versions: 2.19.0
> Reporter: Marco Santarelli
>
> The issue becomes clear if the developers declares more than one producer route with the attached ehcache config: multiple cache managers start contention of file lock and the startup fails.
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <ehcache:config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ehcache="http://www.ehcache.org/v3"
> xsi:schemaLocation="http://www.ehcache.org/v3 http://www.ehcache.org/schema/ehcache-core-3.3.xsd">
> <ehcache:persistence directory="${java.io.tmpdir}/ehcache"></ehcache:persistence>
> <ehcache:cache alias="cache1" uses-template="default-template">
> </ehcache:cache>
> <ehcache:cache alias="cache2" uses-template="default-template">
> <ehcache:expiry>
> <ehcache:ttl unit="minutes">60</ehcache:ttl>
> </ehcache:expiry>
> </ehcache:cache>
> <ehcache:cache alias="cache3" uses-template="default-template">
> <ehcache:expiry>
> <ehcache:ttl unit="minutes">1</ehcache:ttl>
> </ehcache:expiry>
> </ehcache:cache>
> <ehcache:cache-template name="default-template">
> <ehcache:key-type>java.lang.String</ehcache:key-type>
> <ehcache:value-type>java.io.Serializable</ehcache:value-type>
> <ehcache:expiry>
> <ehcache:none/>
> </ehcache:expiry>
> <ehcache:resources>
> <ehcache:heap unit="entries">1000</ehcache:heap>
> <ehcache:disk persistent="true" unit="MB">10</ehcache:disk>
> </ehcache:resources>
> </ehcache:cache-template>
> </ehcache:config>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)