Maybe look at org.jboss.resteasy.plugins.cache.server.ServerCacheInterceptor
?
" implement a simple caching " : using already provided Resteasy JBoss
Cache, or your own based on ehcache with disk overflow is not so hard and
has great performance
2012/7/24 mickael.p...@gmail.com <mickael.p...@gmail.com>
> Hi everyone,
>
> I use RESTEasy 2.3.4 to produce a JSON content from my POJOs (correctly
> annotated with @XmlRootElement, etc.). The simple case where I use @GET and
> @Produces("application/json") to return a list of objects is working fine.
>
> Now, server-side, I need to implement a simple caching mechanism. Instead
> of querying all my POJOs I want to check if a file (containing the JSON
> response) exists on my file system. If not, I would like to put the JSON
> produced content in this file.
>
> My question: how do I, server-side, get the JSON produced by RESTEasy, so
> I can have a simple String that I could write on my file system?
>
> So far, I'm trying with the Client framework (
> http://docs.jboss.org/resteasy/docs/2.3.4.Final/userguide/html/RESTEasy_Client_Framework.html)
> but I think there is a better way to do so.
>
> Thanks,
> Mickael.
>
> --
> *Mickaël Pham* | Solutions Consultant Intern @ Zuora<http://www.zuora.com/>
> Mobile: +1 (408) 646-0219 | Website: www.mickael-pham.fr
> <http://www.mickael-pham.fr/>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Resteasy-users mailing list
> Resteasy-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/resteasy-users
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users