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 to sha

Re: camel cache configurationFile

2016-12-22 Thread vassilis
Hi, Just solved the same issue without having a dependency on the Karaf installation path: You have to include the ehcache.xml file in your bundle jar file. E.g. you may have it as and point to it: * * In a

Re: Camel cache entries gone after certain interval

2016-02-18 Thread souciance
I debugged the flow and saw this: [d #2 - NettyEventExecutorGroup] CacheProducer DEBUG Quering an element with key Login from the Cache [d #2 - NettyEventExecutorGroup] CacheEventListener DEBUG Element [ key = Login, value=1, version=1, hitCount=0, CreationTime = 14557

Re: camel cache configurationFile

2015-12-30 Thread ncasaux
For the future, here what has been done to solve my issue: xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"; For monitoring the cache, I set the attribute monitoring="on" in the ehcache.xml. -- View this message in context: http://camel.465427.n5.nab

Re: camel cache configurationFile

2015-11-30 Thread ncasaux
I just noticed something I can't understand: In my bean, I have also this piece of code for monitoring my cache configuration: During my bundle start, I can see in the logs: 2015-11-30 11:16:01,486 | WARN | xtenderThread-30 | ConfigurationFactory

Re: camel cache configurationFile

2015-11-30 Thread Minh Tran
Is there an exception/stacktrace with the error? That might give you a clue as to what the problem is. The only thing I can think of is perhaps your ehcache.xml doesn’t contain the TestCache2 region defined in there. > On 30 Nov 2015, at 8:06 PM, ncasaux wrote: > > Thanks for your suggestion.

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 the Camel - Users

Re: camel cache configurationFile

2015-11-30 Thread Minh Tran
Hi That TestCache2 in your uri is not the name of the bean, it’s the name of the cache. The easiest way to fix your problem is to set the id your spring bean from “TestCache2" to “cache” in your xml earlier > On 30 Nov 2015, at 7:32 PM, ncasaux wrote: > > Hello, > > In my route, I'm using

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.

Re: camel cache configurationFile

2015-11-27 Thread Minh Tran
Does your uri look something like “cache:blah”? It should be whatever bean name you’ve chosen. In your example it is “TestCache2:blah" Easier just to name your bean “cache” to override the default. > On 28 Nov 2015, at 4:11 AM, ncasaux wrote: > > Hello, > > I'm trying to use the camel cache c

Re: Camel cache across bundles in karaf

2015-10-31 Thread Reji Mathews
Hey Create a common route containing cache component into some commons bundle and connect to that route using "vm" or "direct-vm" component from any other routes in other bundles. Make sure you set the cache operations headers before calling this common route . Cheers Reji On 30 Oct 2015 14:16,

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 wrote: > Hello All, > > Is Camel cache available across multiple bundles in Fuse? I.e. can we set > it in one bundle a

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 endpo

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 a tri

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] to pa

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 wrot

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 mail

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 wrote: > Hi,The camel cache implementation which provides an ehcache

Re: Camel cache consumer (event based)

2013-07-22 Thread Willem jiang
Hi, Did you have chance to check out the example5 of this wiki page[1]? [1]http://camel.apache.org/cache.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blog

Re: Camel cache: CamelCacheCheck and expiry on cached elements

2013-03-20 Thread Claus Ibsen
On Tue, Mar 19, 2013 at 11:47 AM, hefiso wrote: > Hi > > I am using the Cache component where the elements are set to expire after, > say, 5 minutes. > > However, when the component receives the operation CamelCacheCheck it does > *not* check for expiry of the element but only checks if the elemen

Re: Camel Cache Query

2013-03-05 Thread Raúl Kripalani
What happens inside the bean is up to the logic you develop inside the bean's method. Care to share some code so we get a better feel for what you're trying to achieve? In principle, A is a cache producer and B is a cache consumer. If they both interact with the same cache, B will receive notif

Re: Camel Cache Query

2013-03-05 Thread Christian Müller
I think it's not clear what you want, at least for me. Can you explain it more detailed? Sent from a mobile device Am 05.03.2013 06:36 schrieb "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 c

Re: camel-cache questions

2012-08-03 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.

Re: camel-cache questions

2012-08-03 Thread Christian Müller
This should help: http://camel.apache.org/content-enricher.html Best, Christian On Fri, Aug 3, 2012 at 10:05 AM, helander wrote: > Hi, > > first of all, I guess that a cache instance is accessable from components > in the same VM, i.e. not bounded to a specific camel context or route? > > By b

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

2011-07-05 Thread alberto.zigoni
@Willem: version 2.7.2 solves the problem. @Ashwin: this is the stacktrace I get using 2.6.0: [efaultQuartzScheduler_Worker-1] DefaultErrorHandlerERROR Failed delivery for exchangeId: ID-localhost-64937-1309854451521-0-2. Exhausted after delivery attempt: 1 caught: org.apache.camel.N

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

2011-07-04 Thread Willem Jiang
CAMEL-3771[1] Fixed this issue, can you try to use the latest released Camel 2.7.2 ? [1]https://issues.apache.org/jira/browse/CAMEL-3771 On 7/4/11 5:26 PM, alberto.zigoni wrote: I am using Camel 2.6.0 with the camel-cache component. I have noticed that Camel is throwing a NullPointerException

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: NPE for operations not requiring key

2011-07-04 Thread Ashwin Karpe
Hi, Can you please provide the stack trace for the NPE that you are seeing. It seems like a bug, however it is hard to tell without the stack trace. Also can you provide a note on how this may be reproduced... Thanks and Regards, Ashwin... -

Re: camel-cache configuration

2011-06-24 Thread Marco Westermann
Hi, thank you for your answers. But what did that mean for me and my problem. Is there a solution. Do I have to apply the patch attached to jira? or is there already a fixed version? I'm not that familiar with camel development. ;-) Thank you Marco Am 22.06.2011 17:48, schrieb Marco Westerm

Re: camel-cache configuration

2011-06-22 Thread tnk
this might be related with your problem. http://fusesource.com/forums/thread.jspa?messageID=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 - User

Re: camel-cache configuration

2011-06-22 Thread boday
actually, you already can specify cache configuration via the producer...like this from("direct:a") .setHeader(CacheConstants.CACHE_OPERATION, constant(CacheConstants.CACHE_OPERATION_ADD)) .setHeader(CacheConstants.CACHE_KEY, constant("Ralph_Waldo_Emerson")) .to("cache://TestCache1?m

Re: camel-cache configuration

2011-06-22 Thread boday
you should be able to configure your cache explicitly using an ehcache.xml file (just create one in your /src/main/resources directory) otherwise, I'll investigate adding support for configuring cache properties in the cache producer as well... Marco Westermann wrote: > > Hi, > > how do I conf

Re: camel-cache: Using Objects for cache

2010-01-14 Thread tide08
Thanks Ashwin, EHCache has MBean which exposes all the statistics. I guess, for now I can just expose it myself to mbean server. Thanks for all the help :) Ashwin Karpe wrote: > > Hi, > > The other request regarding exposing cache statistics is a little more > involved. > > I have created a

Re: camel-cache: Using Objects for cache

2010-01-14 Thread Ashwin Karpe
Hi, The other request regarding exposing cache statistics is a little more involved. I have created a Jira entry for it and will try and add this feature in due course. Cheers, Ashwin... tide08 wrote: > > Thanks Claus! ArtifactID says springsource is it some customized version > of ehCache

Re: camel-cache: Using Objects for cache

2010-01-14 Thread Ashwin Karpe
Hi Claus, I fixed the sample cache creation issue and have checked in a patch CAMEL-2363. Cheers, Ashwin... Claus Ibsen-2 wrote: > > On Wed, Jan 13, 2010 at 7:19 PM, tide08 wrote: >> >> Thanks Claus! ArtifactID says springsource is it some customized version >> of >> ehCache we are using?

Re: camel-cache: Using Objects for cache

2010-01-14 Thread Ashwin Karpe
Hi, No problem. I will clean out the other caches... I did not realize that these were not commented out :) Cheers, Ashwin tide08 wrote: > > Thanks Claus! ArtifactID says springsource is it some customized version > of ehCache we are using? Reason I am asking is that I have conflict with

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
Hi, The version of ehCache used is 1.6.2. This is however modifiable to a later or earlier 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 > (and osgi is ne

Re: camel-cache: Using Objects for cache

2010-01-13 Thread Claus Ibsen
On Wed, Jan 13, 2010 at 7:19 PM, tide08 wrote: > > Thanks Claus! ArtifactID says springsource is it some customized version of > ehCache we are using? Reason I am asking is that I have conflict with > hibernate and I need to exclude ehCache dependency from either one of these. > Its the OSGi prob

Re: camel-cache: Using Objects for cache

2010-01-13 Thread tide08
Thanks Claus! ArtifactID says springsource is it some customized version of ehCache we are using? Reason I am asking is that I have conflict with hibernate and I need to exclude ehCache dependency from either one of these. Also, I had another suggestion for cache component: - Clean up ehCache.xm

Re: camel-cache: Using Objects for cache

2010-01-12 Thread Claus Ibsen
On Wed, Jan 13, 2010 at 12:32 AM, 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 (and > osgi is new to me) > Check the parent/pm.xml which have versions listed. Otherwise do a mvn dependen

Re: camel-cache: Using Objects for cache

2010-01-12 Thread tide08
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 (and osgi is new to me) Thanks! tide08 wrote: > > Thanks! I will reply back when patch is ready. > > > > Claus Ibsen-2 wrote: >> >> Hi >> >> I created a ti

Re: camel-cache: Using Objects for cache

2010-01-08 Thread tide08
Thanks! I will reply back when patch is ready. Claus Ibsen-2 wrote: > > Hi > > I created a ticket for it > https://issues.apache.org/activemq/browse/CAMEL-2343 > > On Wed, Jan 6, 2010 at 6:12 AM, Claus Ibsen wrote: >> On Wed, Jan 6, 2010 at 3:44 AM, Willem Jiang >> wrote: >>> I think we ca

Re: camel-cache: Using Objects for cache

2010-01-07 Thread Claus Ibsen
Hi I created a ticket for it https://issues.apache.org/activemq/browse/CAMEL-2343 On Wed, Jan 6, 2010 at 6:12 AM, Claus Ibsen wrote: > On Wed, Jan 6, 2010 at 3:44 AM, Willem Jiang wrote: >> I think we can support the InputStream and Serializable object at the same >> time :) >> If the Message b

Re: camel-cache: Using Objects for cache

2010-01-05 Thread Claus Ibsen
On Wed, Jan 6, 2010 at 3:44 AM, Willem Jiang wrote: > I think we can support the InputStream and Serializable object at the same > time :) > If the Message body is Serializable, we can skip the InputStream part, if > it's not, we can try to turn it into an InputStream. > > Any thought? > Yeah my

Re: camel-cache: Using Objects for cache

2010-01-05 Thread Willem Jiang
I think we can support the InputStream and Serializable object at the same time :) If the Message body is Serializable, we can skip the InputStream part, if it's not, we can try to turn it into an InputStream. Any thought? BTW, any kind of contribution is welcome, so please feel free to submit

Re: Camel-Cache: Processors not released?

2009-12-24 Thread Claus Ibsen
On Thu, Dec 24, 2009 at 12:12 AM, tide08 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. > > Are those missi

Re: Camel-Cache: Processors not released?

2009-12-24 Thread Claus Ibsen
On Thu, Dec 24, 2009 at 12:12 AM, tide08 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. > > Are those missi