Hi Srinivas, Could you enlighten us about your design context?
1) Do you need to deploy to a Servlet container or can you use Restlets in the standalone mode? 2) Do you have a larger Spring application you need to integrate with? Best regards, Jerome > -----Message d'origine----- > De : Thierry Boileau [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 25 avril 2007 09:57 > À : [email protected] > Objet : Re: restlet newbie question > > Hello Srinivas, > > here are some pointers that may help you learning how to work with > Restlet/Spring. > - developper FAQ : http://www.restlet.org/documentation/1.0/faq#23 > - some sample code : wiki.restlet.org > It may help getting more familiar with the integration of Spring with > the Restlet. > Personnally, I'm not able to give you a precise answer to > your question > about web services. > > Best regards, > Thierry Boileau > > > Hi all, > > I am new to rest and restlet. > > I have a Spring based project and I would like to expose a > web service using > > Restlet instead of SOAP. > > I came accross in this mailing list that Restlet (with > Spring) can be used in > > one of the following 3 ways but I am still not sure as > which way to adopt and > > if there is a code example that you can suggest specific to > web services: > > > > 1) Standalone mode: based on the Spring extension (SpringContext + > > SpringFinder) and a standalone HTTP server connector. > > > > 2) Embedded mode A: based on the ServerServlet adapter and > either the > > SpringContext (via the WAR client and > "war:///path/config.xml" scheme) or > > via the usage of the ServletContext accessible when casting > Restlet's > > Context to ServletContextAdapter. > > > > 3) Embedded mode B: lighter version where Spring and the > Servlet container > > are not masked by the concept of Restlet Application. This > requires the > > creating of a special Servlet (maybe a Spring's > HttpBeanServlet subclass) > > and a bit of coding to convert Servlet's calls into > Restlet's calls. In this > > mode, no Restlet's Application is created, > Restlets/Filters/Routers/Finders > > are directly instantiated by Spring and configured like > other Spring beans. > > Of course you loose the Application services and the > portability of your > > Restlet code to other deployment environments. > > > > > > Any advice/help is highly appreciated. > > > > Thanks in advance. > > > >

