Hi Andrew, You can declare the client connectors to add to the implicit component via the web.xml configuration. See details about the "org.restlet.clients" context parameters here: http://www.restlet.org/documentation/snapshot/jee/ext/org/restlet/ext/servlet/ServerServlet.html
Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -----Message d'origine----- De : Andrew Zahra [mailto:[email protected]] Envoyé : mardi 25 août 2009 01:17 À : [email protected] Objet : RE: Redirector with Tomcat Thanks Jerome. What exactly do I add the client connector to? I tried adding it to a new Component but that doesn't seem right and it didn't work. Is there some sort of "default component" I can access to add the connector? > Hi Andrew, > > Then you need to use MODE_CLIENT_DISPATCHER (or MODE_DISPATCHER) and add a > client HTTP connector. The Redirector will then act like a transparent > reverse proxy. > > Best regards, > Jerome Louvel > -- > Restlet ~ Founder and Lead developer ~ http://www.restlet.org > Noelios Technologies ~ Co-founder ~ http://www.noelios.com > > > -----Message d'origine----- > De : Andrew Zahra [mailto:[email protected]] > Envoyé : lundi 24 août 2009 01:01 > À : [email protected] > Objet : RE: Redirector with Tomcat > > Thanks for that. What I want to achieve is a redirector for use with GWT. So > I want to have a server side restlet bundled with my GWT app that will > redirect to access a restful service on another server. > > > Hi Andrew, > > > > > > > > The MODE_DISPATCHER type makes the Redirector rely on the client dispatcher > > and therefore on the client connectors registered. Therefore, it shouldn’t > > make any difference whether or not you are running within Tomcat or as > > standalone. > > > > > > > > Note that in Restlet 2.0, I’ve just added support for MODE_SERVER_DISPATCHER > > and MODE_CLIENT_DISPATCHER types and deprecated MODE_DISPATCHER. This allows > > you to rely on the server dispatcher as well for internal re-routing. You > > could also rely on the RIAP pseudo-protocol. > > > > > > > > Maybe you should precise what you want to achieve, so we can give you the > > best mode to use. > > > > > > > > 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 : Andrew Zahra [mailto:[email protected]] > > Envoyé : vendredi 21 août 2009 05:57 > > À : [email protected] > > Objet : Redirector with Tomcat > > > > > > > > I am trying to use the redirector in MODE_DISPATCHER with Tomcat. All the > > example seem to assume you will be running as a standalone on its own port. > > E.g create a Component and add Protocol.HTTP on port 8182. > > > > > > > > What I want to do is create a war file to deploy to tomcat and have the > > redirector redirect any requests to another server. > > > > > > > > This is my first attempt at using the Restlet framework and I don’t quite > > get the paradigm. How do I add a redirector in such a way that it just uses > > the port the container is using but redirects requests for the given web app > > elsewhere? > > > > > > > > Thanks, > > > > Andrew > > ------------------------------------------------------ > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2386594 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2386865 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2386933

