Hi The cache read is from the consumer side, but it acts as an event driven consumer. I think we should have GET added as a new operation on the producer side as well.
Ashwin Karpe created this component maybe he can shed some lights as well? If not then I think you should create a ticket in JIRA for this improvement. On Mon, Mar 29, 2010 at 7:56 PM, anandsk <[email protected]> wrote: > > I checked unit tests, I haven't seen any examples for getting or reading > cached content. all I see is only these operations > ADD/UPDATE/DELETE/DELETEALL , there is no get/read operation. is get not > supported. > > Claus Ibsen-2 wrote: >> >> Hi >> >> Check the unit tests of camel-test to see some examples. >> >> There are special headers you can use to control the cache to DELETE etc. >> >> On Mon, Mar 29, 2010 at 6:18 PM, anandsk <[email protected]> wrote: >>> >>> >>> I have read the documentation of cache component. my requirement is to >>> add a >>> cache entry in a processor after I receive JMS message and access/read >>> the >>> cache in a seperate route and delete it. How do I do this with Camel >>> cache. >>> -- >>> View this message in context: >>> http://old.nabble.com/read-from-cache-component-tp28071593p28071593.html >>> Sent from the Camel - Users mailing list archive at Nabble.com. >>> >>> >> >> >> >> -- >> Claus Ibsen >> Apache Camel Committer >> >> Author of Camel in Action: http://www.manning.com/ibsen/ >> Open Source Integration: http://fusesource.com >> Blog: http://davsclaus.blogspot.com/ >> Twitter: http://twitter.com/davsclaus >> >> > > -- > View this message in context: > http://old.nabble.com/read-from-cache-component-tp28071593p28072821.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
