Re: (Servlet context) How to dynamically add Applications to already initialized ServerServlet?

2009-12-17 Thread Thierry Boileau
Hello Carsten, I've entered an issue about this topic: http://restlet.tigris.org/issues/show_bug.cgi?id=988 Best regards, Thierry Boileau Hi, I use Restlet in a servlet container, using the ServerServlet. In the web.xml I have added the org.restlet.component param and set my specific

(Servlet context) How to dynamically add Applications to already initialized ServerServlet?

2009-12-15 Thread Carsten Lohmann
Hi, I use Restlet in a servlet container, using the ServerServlet. In the web.xml I have added the org.restlet.component param and set my specific Component class. When it comes to the applications for this component, I have to be able to dynamically add and remove applications. But once

Re: Servlet Context

2007-03-07 Thread Jonathan Hall
. With having access to the Servlet Context, you can then access the Spring Context by: web.xml listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener context-param param-namecontextConfigLocation/param-name

RE: Servlet Context

2007-03-07 Thread Jerome Louvel
: mercredi 7 mars 2007 09:53 À : discuss@restlet.tigris.org Objet : Re: Servlet Context Hey Jerome, I did have a look at the org.restlet.ext.spring.SpringContext class. It seems it requires: SpringContext springContext = new SpringContext(getContext()); springContext.getXmlConfigRefs

Servlet Context

2007-03-06 Thread Jonathan Hall
Hi, I was wondering if a way to access the ServletContext could be added to the code. This would be useful for Spring and I presume other IoC frameworks. It would not tie Restlet to any other libraries or harm it as far as I can see. As per shloks example, it would require changes to

RE: Servlet Context

2007-03-06 Thread Jerome Louvel
Hi Jonathan, When using the ServerServlet, the Restlet's context already wraps the Servlet's context (logging, resource loading, parameters, etc.). Why would you need a direct access to the Servlet context? Best regards, Jerome -Message d'origine- De : Jonathan Hall [mailto:[EMAIL

RE: Servlet Context

2007-03-06 Thread Jerome Louvel
: Re: Servlet Context Hi Jerome, Thankyou for responding. The use case I had in mind was for creating a springContext without hardcoding the configuration xml locations: WebApplicationContext springContext = WebApplicationContextUtils.getWebApplicationContext(getServlet Context

Servlet Context Parameter Access

2006-11-09 Thread Evan DiBiase
Hello! I'm working to upgrade our Tomcat servlet-based Restlet code to 1.0B20, from 1.0B18. I think I have almost everything done, but one thing that's proving a bit difficult is getting access to the servlet parameters inside of my Application. I'm using a stock ServerServlet, the

RE: Passing Servlet Context Parameters to Restlet?

2006-06-11 Thread Jerome Louvel
to certain parameters (such as the location of a Lucene index, or whether to enable a certain feature) that are currently stored as context parameters to our existing, non-REST servlet. Ok. I've started using ServerServlet, but it doesn't seem to pass the servlet context parameters through