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 (
but I think there is a better way to do so.


*Mickaël Pham* | Solutions Consultant Intern @ Zuora <http://www.zuora.com/>
Mobile: +1 (408) 646-0219 | Website: 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

Reply via email to