Re: Camel Cache - Trigger an event when the cache expires

2017-02-07 Thread Claus Ibsen
Try to research the jcache api what it offers in this regard. Not sure if the camel-cache has anything for callbacks on expiry, but maybe there is some interface you can implement and hook into it. In other words dive into the code yourself and research the jcache api. And you are welcome

Camel Cache - Trigger an event when the cache expires

2017-02-07 Thread ganga_camel
any guidance is appreciated. Thanks, Ganga -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Cache-Trigger-an-event-when-the-cache-expires-tp5793574.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel cache configurationFile

2016-12-22 Thread vassilis
nt.xml: ehcache.xml: -- View this message in context: http://camel.465427.n5.nabble.com/camel-cache-configurationFile-tp5774492p5791855.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel cache entries gone after certain interval

2016-02-18 Thread souciance
= 1455798324000, LastAccessTime = 1455798324000 ] has expired in cache cache1 So, somehow even though I have eternal to true, the element still expires? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-cache-entries-gone-after-certain-interval-tp5777835p5777836.html Sent from

Camel cache entries gone after certain interval

2016-02-18 Thread souciance
Hi, I have implemented camel cache as follows: from("cache://cache1" + "?maxElementsInMemory=100"+ "=MemoryStoreEvictionPolicy.LFU"+ "=true"

Re: camel cache configurationFile

2015-12-30 Thread ncasaux
camel.465427.n5.nabble.com/camel-cache-configurationFile-tp5774492p5775600.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel-cache usaed in Enricher Route

2015-12-06 Thread Michele
Regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/Camel-cache-usaed-in-Enricher-Route-tp5774747.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel cache configurationFile

2015-11-30 Thread Minh Tran
.com> wrote: > > Hello, > > In my route, I'm using this URI, which seems OK with the bean to me: > > .to("cache://TestCache2") > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-cache-configurationFile-tp5774492p577

Re: camel cache configurationFile

2015-11-30 Thread ncasaux
Thanks for your suggestion. However, I did as you recommand : but I still get the "No configuration found" when I update the bundle. -- View this message in context: http://camel.465427.n5.nabble.com/camel-cache-configurationFile-tp5774492p5774552.html Sent from

Re: camel cache configurationFile

2015-11-30 Thread Minh Tran
> > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-cache-configurationFile-tp5774492p5774552.html > Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel cache configurationFile

2015-11-30 Thread ncasaux
| 242 - net.sf.ehcache - 2.9.1 | No configuration found 2015-11-30 11:16:01,558 | INFO | xtenderThread-30 | DefaultCacheManagerFactory | 243 - org.apache.camel.camel-cache - 2.15.3 | Creating CacheManager usin g camel-cache configuration: file:D:\\Tools\\apache-servicemix-6.0.1-DUPLICATE

Re: camel cache configurationFile

2015-11-30 Thread ncasaux
Hello, In my route, I'm using this URI, which seems OK with the bean to me: .to("cache://TestCache2") -- View this message in context: http://camel.465427.n5.nabble.com/camel-cache-configurationFile-tp5774492p5774549.html Sent from the Camel - Users mailing list archive at Nabble.com.

camel cache configurationFile

2015-11-27 Thread ncasaux
Hello, I'm trying to use the camel cache component with a configuration file as described in the camel cache component: However, it's not working, as I always get the message when I update the bundle: net.sf.ehcache - 2.9.1 | No configuration found. Configuring ehcache from ehcache

Re: camel cache configurationFile

2015-11-27 Thread Minh Tran
te: > > Hello, > > I'm trying to use the camel cache component with a configuration file as > described in the camel cache component: > > class="org.apache.camel.component.cache.CacheComponent"> >value="file:D:\\Tools\\apache-servicemix-6.0.1\\etc\\ehcach

Re: Camel cache across bundles in karaf

2015-10-31 Thread Reji Mathews
On 30 Oct 2015 14:16, "Vanshul.Chawla" <vanshul.cha...@target.com> wrote: > Hello All, > > Is Camel cache available across multiple bundles in Fuse? I.e. can we set > it in one bundle and multiple bundles refer this? > > > Vanshul >

Camel cache across bundles in karaf

2015-10-30 Thread Vanshul . Chawla
Hello All, Is Camel cache available across multiple bundles in Fuse? I.e. can we set it in one bundle and multiple bundles refer this? Vanshul

Re: Camel cache across bundles in karaf

2015-10-30 Thread Matt Sicker
I know of two ways to do that: 1. Export the Endpoint as an OSGi service. 2. Use a middleware endpoint like JMS or some event queue. On 30 October 2015 at 03:46, Vanshul.Chawla <vanshul.cha...@target.com> wrote: > Hello All, > > Is Camel cache available across multiple bundles in

Re: Camel-Cache 2.14.0 with MyBatis

2014-10-31 Thread Henryk Konsek
Hi, I'm looking at something that would automatically flush the cache for the key, run the mybatis query and cache its result again? No such thing out of the box. You need to control the cache by explicit calls to camel-cache operations. You can however consider using interceptors [1

Re: Camel-Cache 2.14.0 with MyBatis

2014-10-31 Thread sandp
Hi, If I controlled the cache by explicit calls to camel-cache operations, I wouldn't know if something changed unless I run the mybatis endpoint. Traditional way is to have a trigger on the table, and listen to update on a row from the application or implement the Observer Pattern. Having

Re: Camel-Cache 2.14.0 with MyBatis

2014-10-31 Thread Henryk Konsek
Hi, Having a trigger seems to be a simple solution, but does *camel provide a way to listen to a DB trigger*? You can use trigger to invoke Camel endpoint. For example in Postgres you can write modules in PL/Python [1] and invoke HTTP Netty endpoint exposed by Camel. Messages from that

Camel-Cache 2.14.0 with MyBatis

2014-10-30 Thread sandp
Hi, I'm trying to implement caching with camel-cache. The Idea is to cache the results of a mybatis query on a table update. I'm looking at something that would automatically flush the cache for the key, run the mybatis query and cache its result again? A restlet endpoint would look

camel-cache 2.13.1 fails on UpdateChecker

2014-07-04 Thread sandeepreddip
Hi, I'm facing an issue using camel-cache 2.13.1 in a route, it blows with a with **[__DEFAULT__] DEBUG net.sf.ehcache.util.UpdateChecker - Update check failed: * java.net.SocketTimeoutException: connect timed out *. See complete trace below. Found similar issue with quartz but resolved

Re: camel-cache 2.13.1 fails on UpdateChecker

2014-07-04 Thread Claus Ibsen
Hi Thanks for bringing this to our attention. Its IMHO shady of terracotta to do this again - they do it with quartz too. I have logged a ticket so we can turn this off by default in camel-cache. https://issues.apache.org/jira/browse/CAMEL-7576 On Thu, Jul 3, 2014 at 5:50 PM, sandeepreddip

An idea of new camel-cache endpoint

2014-07-04 Thread pklimczak
. What cane be daone with hazelcast in just 10 minutes, with chache component takes few hours and many wrappers, xmls etc. Was also speaking with Henryk Konsek about camel-cache deprecation and the idea that was found during our conversation was to create camel-cache2 component, that will work

Usage of Camel cache component (Camel component auto discovery)

2013-11-12 Thread shindito
Hi guys, I’ve looked through many Camel sources (Camel in Action, Camel documentation for components on the net) but did not manage to solve the following problem. I'm trying to deploy a route which uses the camel-cache component, however, I'm getting the well-known

camel cache

2013-09-02 Thread lmanchanda75
Hi,The camel cache implementation which provides an ehcache integration component forces a serializable object though ehcache allows non-serializable objects too if clustering is not required. This makes in unusable for some scenarios. Any specific reason for doing so?Regdslalit -- View

Re: camel cache

2013-09-02 Thread Claus Ibsen
Hi There is no specific reason. We welcome contributions so feel free to log a JIRA and if possible provide a patch with this improvement. http://camel.apache.org/contributing.html On Sun, Sep 1, 2013 at 7:11 PM, lmanchanda75 lmanchand...@gmail.com wrote: Hi,The camel cache implementation

Re: camel cache

2013-09-02 Thread lmanchanda75
Hi Claus, I have created the following Jira ticket. https://issues.apache.org/jira/browse/CAMEL-6698 Will work to do the improvement and submit. Regds lalit -- View this message in context: http://camel.465427.n5.nabble.com/camel-cache-tp5738435p5738509.html Sent from the Camel - Users

Camel cache consumer (event based)

2013-07-22 Thread rrajen2
Hi I have a Camel cache producer built using EHCache. I was wondering if I want a event-based Cache consumer to consume from it, how would I be able to do it? Assume I have a Cache named cache://testCache with its producer built. Please share sample code demonstrating a event based consumer from

Re: Camel cache consumer (event based)

2013-07-22 Thread Willem jiang
://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Monday, July 22, 2013 at 2:46 PM, rrajen2 wrote: Hi I have a Camel cache producer built using EHCache. I was wondering if I want a event-based Cache consumer

Re: Camel cache: CamelCacheCheck and expiry on cached elements

2013-03-20 Thread Claus Ibsen
/contributing.html Best regards Henrik -- View this message in context: http://camel.465427.n5.nabble.com/Camel-cache-CamelCacheCheck-and-expiry-on-cached-elements-tp5729404.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - Red Hat, Inc

Re: Viewing the contents of camel-cache

2013-03-07 Thread Willem jiang
camel-cache just let you know the change of the cache and help you change the content of the cache. If you want to read the content of the cache, you can use the ehcache API to access the cache content[1] [1]http://ehcache.org/documentation/code-samples#using-caches -- Willem Jiang Red

Camel Cache Query

2013-03-05 Thread gilboy
Hi Folks, If I have a route A which reads data from a dynamic source (data changes every x mins) and places it into a cache using the camel-cache component. I now have a route B that reads from the cache and sends the exchange to a bean where certain properties are set on the bean. Route B

Re: Camel Cache Query

2013-03-05 Thread Raúl Kripalani
it into a cache using the camel-cache component. I now have a route B that reads from the cache and sends the exchange to a bean where certain properties are set on the bean. Route B executes once. When the dynamic source changes and route A subsequently updates the cache, I am wondering

Re: Use camel-cache constants in Blueprint DSL

2012-08-06 Thread helander
.nabble.com/Use-camel-cache-constants-in-Blueprint-DSL-tp5716843p5716875.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Use camel-cache constants in Blueprint DSL

2012-08-06 Thread Christian Müller
Check out the Camel cache component page: [1] The unit tests are also a good source to discover [2]. [1] http://camel.apache.org/cache.html [2] https://svn.apache.org/repos/asf/camel/trunk/components/camel-cache/src/test/java/org/apache/camel/component/cache/ Best, Christian On Mon, Aug 6, 2012

Re: Use camel-cache constants in Blueprint DSL

2012-08-06 Thread helander
Thanks Christian. Especially the hint about looking at test cases. /Lars -- View this message in context: http://camel.465427.n5.nabble.com/Use-camel-cache-constants-in-Blueprint-DSL-tp5716843p5716889.html Sent from the Camel - Users mailing list archive at Nabble.com.

Use camel-cache constants in Blueprint DSL

2012-08-05 Thread helander
How do I use camel-cache constants, e.g. CacheConstants.CACHE_OPERATION, in Blueprint DSL? Short example would be nice. Thanks Lars -- View this message in context: http://camel.465427.n5.nabble.com/Use-camel-cache-constants-in-Blueprint-DSL-tp5716843.html Sent from the Camel - Users

Re: Use camel-cache constants in Blueprint DSL

2012-08-05 Thread Willem jiang
You can use the setHeader DSL like this route from uri=direct:a/ setHeader headerName=CamelCacheOperation constantthe value/constant /setHeader to uri=cache:xxx/ /route -- Willem Jiang On Sunday, August 5, 2012 at 7:01 PM, helander wrote: How do I use camel-cache constants, e.g

Re: camel-cache questions

2012-08-04 Thread helander
Christian, thank you very much. The provided link was very helpful. Thanks Lars -- View this message in context: http://camel.465427.n5.nabble.com/camel-cache-questions-tp5716755p5716823.html Sent from the Camel - Users mailing list archive at Nabble.com.

camel-cache questions

2012-08-03 Thread helander
to the original exchange when the LDAP data has been returned, is mystery to me at the moment. Thanks Lars -- View this message in context: http://camel.465427.n5.nabble.com/camel-cache-questions-tp5716755.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-cache questions

2012-08-03 Thread Christian Müller
this message in context: http://camel.465427.n5.nabble.com/camel-cache-questions-tp5716755.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-cache: NPE for operations not requiring key

2011-07-05 Thread alberto.zigoni
-core-2.6.0.jar:2.6.0] at org.apache.camel.component.cache.CacheProducer.performCacheOperation(CacheProducer.java:105)[camel-cache-2.6.0.jar:2.6.0] at org.apache.camel.component.cache.CacheProducer.process(CacheProducer.java:95)[camel-cache-2.6.0.jar:2.6.0

Re: camel-cache: NPE for operations not requiring key

2011-07-04 Thread Ashwin Karpe
- -- View this message in context: http://camel.465427.n5.nabble.com/camel-cache-NPE-for-operations-not-requiring-key-tp4549468p4551036.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-cache: NPE for operations not requiring message body

2011-07-04 Thread alberto.zigoni
Subject was wrong, sorry. -- View this message in context: http://camel.465427.n5.nabble.com/camel-cache-NPE-for-operations-not-requiring-key-tp4549468p4550069.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-cache configuration

2011-06-24 Thread Marco Westermann
Westermann: Hi, how do I configure the camel-cache (ehcache) component, if I don't need a from(cache) in my route? I don't wan't to react on changes in the cache. in docs http://camel.apache.org/cache.html the example does the configuration within the from-element. If I try to add values

camel-cache configuration

2011-06-22 Thread Marco Westermann
Hi, how do I configure the camel-cache (ehcache) component, if I don't need a from(cache) in my route? I don't wan't to react on changes in the cache. in docs http://camel.apache.org/cache.html the example does the configuration within the from-element. If I try to add values to the cache

Re: camel-cache configuration

2011-06-22 Thread boday
configure the camel-cache (ehcache) component, if I don't need a from(cache) in my route? I don't wan't to react on changes in the cache. in docs http://camel.apache.org/cache.html the example does the configuration within the from-element. If I try to add values to the cache directly I get

Re: camel-cache configuration

2011-06-22 Thread boday
?maxElementsInMemory=2); boday wrote: otherwise, I'll investigate adding support for configuring cache properties in the cache producer as well... - Ben O'Day IT Consultant -http://consulting-notes.com -- View this message in context: http://camel.465427.n5.nabble.com/camel-cache

Re: camel-cache configuration

2011-06-22 Thread tnk
this might be related with your problem. http://fusesource.com/forums/thread.jspa?messageID=9547#9547 ehcache-failsafe.xml is missing inside ehcache bundle. -- View this message in context: http://camel.465427.n5.nabble.com/camel-cache-configuration-tp4514476p4515096.html Sent from the Camel

Re: Building issue with camel-cache

2010-06-14 Thread Claus Ibsen
, Charles Moulliard cmoulli...@gmail.com wrote: Hi, I have an issue to build camel-cache Is the ehcache OSGI' jar always available on the spring repository site or do we have to change due to moving of ehcache to terracotta ? Missing: -- 1

Building issue with camel-cache

2010-06-11 Thread Charles Moulliard
Hi, I have an issue to build camel-cache Is the ehcache OSGI' jar always available on the spring repository site or do we have to change due to moving of ehcache to terracotta ? Missing: -- 1) net.sourceforge.ehcache:com.springsource.net.sf.ehcache:jar:1.6.2 Try downloading the file

Re: camel-cache: Using Objects for cache

2010-01-14 Thread Ashwin Karpe
();        } Looking at EHCache API, it can support any object as long as it is serializable, so camel-cache component should not try to convert payload into InputStream. Or was there any specific reason to do so? I quickly modified Producer and it seems to work fine, please let me know and I would

Re: camel-cache: Using Objects for cache

2010-01-14 Thread Ashwin Karpe
Hi, The version of ehCache used by camel-cache is 1.6.2. This can however be modified to an earlier or later version. Cheers, Ashwin... tide08 wrote: Looks like Ashwin got on to this before I could submit mine. BTW..what version of ehCache does it use? It is not very clear from pom

Re: camel-cache: Using Objects for cache

2010-01-14 Thread Ashwin Karpe
that is a big pain with OSGi as you need to keep up to date with releases. Many projects don't release their .jars as OSGi compliant bundles. It should be possible to use a never version and then let the camel feature for camel-cache use that Spring OSGi compliant .jar. Just that they are API

Re: camel-cache: Using Objects for cache

2010-01-14 Thread Ashwin Karpe
++) {            buffer[j] = (byte)is.read();        } Looking at EHCache API, it can support any object as long as it is serializable, so camel-cache component should not try to convert payload into InputStream. Or was there any specific reason to do so? I quickly modified Producer and it seems to work fine

Re: camel-cache: Using Objects for cache

2010-01-13 Thread tide08
();        for (int j = 0; j n; j++) {            buffer[j] = (byte)is.read();        } Looking at EHCache API, it can support any object as long as it is serializable, so camel-cache component should not try to convert payload into InputStream. Or was there any specific reason to do so? I quickly

Re: camel-cache: Using Objects for cache

2010-01-13 Thread Claus Ibsen
. It should be possible to use a never version and then let the camel feature for camel-cache use that Spring OSGi compliant .jar. Just that they are API compatible. Also, I had another suggestion for cache component: - Clean up ehCache.xml to remove sample cache descriptions as these are redundant

Re: camel-cache: Using Objects for cache

2010-01-12 Thread tide08
[] buffer = new byte[is.available()];        int n = is.available();        for (int j = 0; j n; j++) {            buffer[j] = (byte)is.read();        } Looking at EHCache API, it can support any object as long as it is serializable, so camel-cache component should not try to convert payload

Re: camel-cache: Using Objects for cache

2010-01-12 Thread Claus Ibsen
[] buffer = new byte[is.available()];        int n = is.available();        for (int j = 0; j n; j++) {            buffer[j] = (byte)is.read();        } Looking at EHCache API, it can support any object as long as it is serializable, so camel-cache component should not try to convert payload

Re: camel-cache: Using Objects for cache

2010-01-08 Thread tide08
support any object as long as it is serializable, so camel-cache component should not try to convert payload into InputStream. Or was there any specific reason to do so? I quickly modified Producer and it seems to work fine, please let me know and I would be happy to provide the patch. Thanks

Re: camel-cache: Using Objects for cache

2010-01-07 Thread Claus Ibsen
[] buffer        byte[] buffer = new byte[is.available()];        int n = is.available();        for (int j = 0; j n; j++) {            buffer[j] = (byte)is.read();        } Looking at EHCache API, it can support any object as long as it is serializable, so camel-cache component should not try

camel-cache: Using Objects for cache

2010-01-05 Thread tide08
(); for (int j = 0; j n; j++) { buffer[j] = (byte)is.read(); } Looking at EHCache API, it can support any object as long as it is serializable, so camel-cache component should not try to convert payload into InputStream. Or was there any specific reason to do so? I quickly

Re: camel-cache: Using Objects for cache

2010-01-05 Thread Willem Jiang
into a byte[] buffer byte[] buffer = new byte[is.available()]; int n = is.available(); for (int j = 0; j n; j++) { buffer[j] = (byte)is.read(); } Looking at EHCache API, it can support any object as long as it is serializable, so camel-cache component

Re: camel-cache: Using Objects for cache

2010-01-05 Thread Claus Ibsen
)is.read();        } Looking at EHCache API, it can support any object as long as it is serializable, so camel-cache component should not try to convert payload into InputStream. Or was there any specific reason to do so? I quickly modified Producer and it seems to work fine, please let me know

Re: Camel-Cache: Processors not released?

2009-12-24 Thread Claus Ibsen
On Thu, Dec 24, 2009 at 12:12 AM, tide08 sachin2...@yahoo.com wrote: It looks like camel-cache processor are not released? I did unjar camel-cache 2.1.0 jar, it does not have processor (ex: CacheBasedTokenReplacer) classes, and on exploding source jar it does seem to have processor sources

Re: Camel-Cache: Processors not released?

2009-12-24 Thread Claus Ibsen
On Thu, Dec 24, 2009 at 12:12 AM, tide08 sachin2...@yahoo.com wrote: It looks like camel-cache processor are not released? I did unjar camel-cache 2.1.0 jar, it does not have processor (ex: CacheBasedTokenReplacer) classes, and on exploding source jar it does seem to have processor sources

Camel-Cache: Processors not released?

2009-12-23 Thread tide08
It looks like camel-cache processor are not released? I did unjar camel-cache 2.1.0 jar, it does not have processor (ex: CacheBasedTokenReplacer) classes, and on exploding source jar it does seem to have processor sources. Are those missing or am I mis-understanding something? or do I need some