Hooking Spring 2.5.6 and GWT 1.6 - getServletContext returns N

2009-04-21 Thread colt54
Hi, I am trying to use a GWT service with Spring. I am using DispatcherServlet from Spring, GWTHandler and my service is defined as a bean in a mywebapp-servlet.xml file. I have also beans intialized at startup with ContextLoadListener. My service works fine except if I try to call getServletCont

Re: Hooking Spring 2.5.6 and GWT 1.6 - getServletContext returns N

2009-04-23 Thread Marcin Zawadzki
Hi, Try following approach - works for me. Rather then extends your service implementation with RemoteServiceServlet make sure your service is context aware - implement ServletContextAware. So you'll have: @SuppressWarnings("serial") public class GreetingServiceImpl implements GreetingService,Ser