There is not, presently, a way to run Servlets under Restlet instead of vice versa. There are some RFEs to cover this:
"Request and Response wrapper for Servlet API" http://restlet.tigris.org/issues/show_bug.cgi?id=512 (and peripherally, but useful to probably the same class of problems) "Support JSP representations" http://restlet.tigris.org/issues/show_bug.cgi?id=753 With M7's beefed up internal HTTP connector, I am becoming an even better fan of this idea of having a primarily Restlet server that can run a Servlet every now and then when it has to. If anybody wants to attack RFE 512, most of the necessary tricks are in here: http://gogoego.googlecode.com/svn/trunk/modules/org.gogoego.rack/src/org/gogoego/rack/ this Rack connector for Restlet has to convert Restlet concepts to Servlet concepts so that jruby-rack can work under a pure Restlet container. It works fine in production, but is neither elegant enough for inclusion in Restlet nor flexible enough to handle Servlets in general. This was written against 1.2M5 or so; may not work against M7 directly. - R On Mon, Feb 1, 2010 at 6:21 AM, Xavier Méhaut <[email protected]> wrote: > Hello, > I wonder how to mix in the same application serverside RPC servlet and > calls to restlets, ie I have a GWT GUI which calls either a GWT RPC service > or a remote restlet... The only I found up to now, is to run the application > in a Servlet container by usisng the servlet connector... but I would prefer > launching a RESTLET application which could manage both cases described > above. > regards > Xavier > > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2443784

