I wanted to get some spring injected beans in my resource file. and i have looked at the integration with spring in other ways but i would not be very interested in that as i want to keep spring separate from restlet. Also i am aware of the concern that this way my application will be tied to Servlet api. but i think i am fine with that as i will be running on tomcat only. I looked at "SpringServerServlet" and tried calling * getWebApplicationContext<http://www.restlet.org/documentation/snapshot/ext/org/restlet/ext/spring/SpringServerServlet.html#getWebApplicationContext()> *() or getServletContext<http://java.sun.com/javaee/5/docs/api/javax/servlet/GenericServlet.html#getServletContext()>() but in both the cases i am getting exception. I did not do anything else. except calling this method from the resource file. Is there any other steps i need to follow to get the springContext or webappllication context to get the beans from the spring.
Any help on this is highly appreciated. Thanks, Rahul -- Rahul Juneja http://techlabs.thoughtclicks.com http://finance.thoughtclicks.com --------------------------------------------------------------------------- The thing always happens that you really believe in; and the belief in a thing makes it happen. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2394316