PDA

View Full Version : Restlet, Spring and REST support


jlouvel
Mar 27th, 2007, 06:59 AM
Hi all,

I'd like to announce that we have just improved the Restlet integration with Spring. Based on the feed-back of several Spring users in our mailing list, we now support two main modes, including one where Spring is fully controlling the instantiation of Restlet Resources, Representations, Finders, Routers, etc.

The integration is now documented in our FAQ:
http://www.restlet.org/documentation/1.0/faq#23

See also the Javadocs of our Spring extension:
http://www.restlet.org/documentation/1.0/ext/index.html?org/restlet/ext/spring/package-summary.html

I've also updated the related Spring RFE ("REST support"):
http://opensource.atlassian.com/projects/spring/browse/SWS-82#action_22907

Best regards,
Jerome Louvel
http://www.restlet.org

rahul_brid
Sep 11th, 2008, 08:43 AM
i am new to this concepts.I was trying to find out the flow of the RestServlet
roughly i could figure out but still confused.

if i configure something like this in my web.xml what will be the triggering
point and how things starts up.

<context-param>
<param-name>org.restlet.application</param-name>
<param-value>com.rest.app.RestApplication</param-value>
</context-param>

<servlet>
<servlet-name>RestServlet</servlet-name>
<servlet-class>com.rest.servlet.ServerServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>RestServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>

jlouvel
Sep 11th, 2008, 09:25 AM
Which version of Restlet are you using? I suggest trying the recent Restlet 1.1 RC1 version or a snapshot build.

You can check this package for Restlet-Spring integration in a Servlet container: com.noelios.restlet.ext.spring

You can also check our documentation page in our wiki:
http ://wiki.restlet.org/docs_1.1/g1/13-restlet/29-restlet/99-restlet/59-restlet.html

Best regards,
Jerome Louvel