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,ServletContextAware {
private transient ApplicationContext ac;
private ClientBusiness clientBusiness;
private ServletContext servletContext;
public String greetServer(String clientLogin) {
String result = "Hello";
boolean res;
String serverInfo = servletContext.getServerInfo(); <-- injected by spring from your mywebapp-servlet.xml file
return result;
}
public void setServletContext(ServletContext arg0) {
// TODO Auto-generated method stub
this.servletContext = arg0;
}
}
Thanks,
Marcin
--
Greetings,
Marcin