Hello Jerome,
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
instanciated 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.
Do you have some more documentation and examples concerning this mode of
integration?
Currently today in Spring it is very simple to expose the service layer
using SOAP or Burlap for example.
Until Spring WS 2.0 is released it seems there is no easy way to do this
for REST.
CXF has REST support but it has such a dependency hell I do not really
consider it a usable solution.
RESTlets look nice and I see some integration classes have been provided
for Spring however I have not found a clear end-to-end example of taking
a service defined as a bean in Spring and exposing it using RESTlets.
Also as far as mapping requests to service is concerned it is not clear
how this can be done in an elegant fashion.
Could one imagine some annotations?
How are the HTTP verbs mapped to methods of the service? Could this be
done with annotations as well or conventions and reflection.
Kind thanks for any pointers.
Serge