I had follow this link: Access Spring beans from a servlet in JBoss to autowired a bean But then the properties in that Bean are null ? So what could be the problem ? Please, help me. I am new with java !!!
public class MyServlet extends HttpServlet {
@Autowired
private MyService myService;
public void init(ServletConfig config) {
super.init(config);
SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this,
config.getServletContext());
}
}