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
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.
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.
=
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
Hi,
I have implemented camel cache as follows:
from("cache://cache1" + "?maxElementsInMemory=100"+
"=MemoryStoreEvictionPolicy.LFU"+
"=true"
camel.465427.n5.nabble.com/camel-cache-configurationFile-tp5774492p5775600.html
Sent from the Camel - Users mailing list archive at Nabble.com.
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.
.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
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
>
>
>
> --
> 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.
| 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
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.
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
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
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
>
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
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
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
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
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
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
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
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
.
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
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
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
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
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
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
://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
/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
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
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
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
.nabble.com/Use-camel-cache-constants-in-Blueprint-DSL-tp5716843p5716875.html
Sent from the Camel - Users mailing list archive at Nabble.com.
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
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.
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
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
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.
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.
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.
-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
-
--
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.
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.
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
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
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
?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
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
, 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
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
();
}
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
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
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
++) {
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
();
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
.
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
[] 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
[] 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
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
[] 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
();
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
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
)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
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
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
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
68 matches
Mail list logo