How to access a cache entry within a Java bean called from a camel route?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to access a cache entry within a Java bean called from a camel route?

catshout
This post was updated on .
Dear ServiceMix community,

I've created a route like this ..

<!-- Write configuration data to the cache -->
<setHeader headerName="CamelCacheOperation">
	<constant>UPDATE</constant>
</setHeader>
<setHeader headerName="CamelCacheKey">
	<constant>key1</constant>
</setHeader>
<setHeader headerName="CamelCacheEternal">
	<simple>true</simple>
</setHeader>
<to uri="cache://cache1" />

Further I've created a bean with some Java code. I want to access the cache value inside the bean. How to refer to the cache and further to the cache entry within the bean?

Any help is highly appreciated.

Best
- Gerald