I would assume that the manager in your code is EntityManager.
Assuming the
EJB jar and WAR are packaged into an EAR, then you could use the following annotation for dependency injection
If the servlet is packaged outside the EAR, then you need to modify your deployment descriptor (web.xml) for DI or you can access it via JNDI.
Regards.