Hi
On 02/12/11 15:10, eswarup wrote:
Thanks Sergey..
I had initially thought about CXF filters, but my concern is i'm looking for
results after it's marshalled by Jaxb or Json providers into xml, json etc.
Cashing Responses will be a bit more expensive in that the serialization
will occur on every request, but I guess JAXB can be optimized; the plus
is that Responses will get much less memory occupied then the cached
serialized representations, but I may be wrong :-)
I wasn't sure if I can get that content at response handlers level. If we
can, can just give sample code that can retrieve from Message or Response.
You'll probably need to copy the relevant code from
LoggingOutInterceptor, see also
http://svn.apache.org/repos/asf/cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/interceptor/PersistOutInterceptor.java
may be that can help
Cheers, Sergey
We already have a redis cache setup, and would be using it. Or else,
echcache option that you had provided is exactly what i'm looking for.
Thanks,
Swarup
--
View this message in context:
http://cxf.547215.n5.nabble.com/Caching-results-using-interceptor-tp5039950p5042149.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com