Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8EB66E55B for ; Fri, 18 Jan 2013 16:02:14 +0000 (UTC) Received: (qmail 97111 invoked by uid 500); 18 Jan 2013 16:02:14 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 97071 invoked by uid 500); 18 Jan 2013 16:02:14 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 97009 invoked by uid 99); 18 Jan 2013 16:02:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2013 16:02:14 +0000 Date: Fri, 18 Jan 2013 16:02:14 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-3686) Allow to share cache between bundles, and only clear cache when no more bundles access that cache MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-3686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-3686: ------------------------------- Fix Version/s: (was: 2.11.0) > Allow to share cache between bundles, and only clear cache when no more bundles access that cache > ------------------------------------------------------------------------------------------------- > > Key: CAMEL-3686 > URL: https://issues.apache.org/jira/browse/CAMEL-3686 > Project: Camel > Issue Type: Improvement > Components: camel-cache > Affects Versions: 2.4.0 > Environment: camel-cache 2.4.0-fuse-01-00 > Reporter: Justas > Fix For: Future > > Attachments: camel-cache.sharedCacheManagerFactory.patch, camel-cache.zip, diff.txt > > > I am using camel-cache component in serviceMix. Cache endpoint uri is > "cache://elements?maxElementsInMemory=2&memoryStoreEvictionPolicy=MemoryStoreEvictionPolicy.FIFO&overflowToDisk=false&eternal=false&timeToLiveSeconds=800" > I have 2 bundles (core.jar, services.jar). Inside those bundles I use > @EndpointInject(uri = Constants.CACHE_URI) > ProducerTemplate cacheTemplate; > cacheTemplate.requestBodyAndHeaders(...) > core.jar puts and reads elements from cache. > services.jar only reads elements from cache. > After deploying both bundles it works fine, but if i uninstall services.jar, cache is "destroyed". core.jar (and all others) can't put objects into cache anymore. > How could I make all bundles to "share" the same cache? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira