You can use the Camel cache component to get the cache value from your bean, by using either ProducerTemplate / @Produce etc to send a message to the cache endpoint with a GET header as operation to get the value.
An alternative is to find out if you can get the cache manager bean the cache component uses, and use its native java api to access the cache. On Fri, Apr 29, 2016 at 8:30 AM, catshout <gerald.kal...@web.de> wrote: > Dear Camel community, > > I'm using ServiceMix with Camel and Camel Cache. > > I've created a route like this .. > > > > 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 > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-to-access-a-cache-entry-within-a-Java-bean-called-from-a-camel-route-tp5781940.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2