Rest help needed

2010-07-19 Thread Rachel Yvonneski
Hi all! I need some help with rest as I am new to this programming scene. I'm trying to learn the the basic restlet webservice therefore can someone link me to a forum post somewhere that shows you how you use restlet to POST? Basically I want to POST hello, world to the resource, and upon

Re: Problem with HttpClient extension (org.restlet.ext.httpclient) and unreleased connections during 404s

2010-07-19 Thread David Fogel
Hi Jerome- (comments inline) On Sun, Jul 18, 2010 at 10:05 AM, Jerome Louvel jerome.lou...@noelios.com wrote: As Thierry pointed out, Representation#release() will close the stream immediately in your case. I'm still trying to understand what the correct way is to use the ClientResource API.

RE: Re: Rest help needed

2010-07-19 Thread Thierry Boileau
Hello Rachel and Alex, as mentionned by Alex a simple ServerResource is shown here ([1]). In your case, you need to complete it with the following code: @Post public String accept(String message) { return message; } Then, on client side, have a look at this sample code [2].

Re: Problem with HttpClient extension (org.restlet.ext.httpclient) and unreleased connections during 404s

2010-07-19 Thread Jerome Louvel
Hi David, Thanks for the very valuable feed-back. Here are the changes that I just made to SVN trunk: - Fixed Javadocs of ClientResource#release() and Message#release() - Request and responses now call their release() method upon garbage collection. It releases any associated entity

How to inject a Spring bean service into a Restlet component

2010-07-19 Thread Richard Brewster
Just starting with Restlet and Spring in Tomcat container. I have a Spring MVC web application to which I wish to add Restlet support on some URL paths. I have the Restlet In Action MEAP book. I set up org.restlet.ext.servlet.ServerServlet in web.xml to init either a restlet application or