Hi Tim,
Isnt it lovely? :-) The best of both worlds indeed ! Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ <http://www.restlet.org/> http://www.restlet.org Noelios Technologies ~ Co-founder ~ <http://www.noelios.com/> http://www.noelios.com De : [email protected] [mailto:[email protected]] De la part de Tim Peierls Envoyé : mardi 25 août 2009 17:58 À : [email protected] Objet : Re: ClientResource Examples? On Tue, Aug 25, 2009 at 4:02 AM, Jerome Louvel <[email protected]> wrote: There is even a more transparent way if you define an annotated Java interface (using the Restlet @Get, @Put, etc. annotations). Once it is defined, you can use it on the server side in your ServerResource subclasses or on the client side to consume it: MyAnnotatedInterface myClient = myClientResource.wrap(MyAnnotatedInterface.class); In this case, automatic conversion is handled for you. Nifty! I can't believe I missed this. It's a huge selling point for those who want to be good RESTful citizens but who also secretly hanker for transparent Java remoting: "Look! I call this method here and it calls the same method on another object on another machine. Magic..." --tim ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2387656

