I\'m trying to test a minimal JAX-RS + EJB/CDI injection mechanism and currently hitting a road-block due to GlassFish unable to inject for whatever reason.
(Using @
Indeed, Jersey does not handle properly dependency injection. So far it seems to be reported and aimed for future releases. http://java.net/jira/browse/JERSEY-517
Facing same issue I had to implement context lookup to get access to managed resource.
So try something like this in your WS constructor:
employeeService = (ApplicationScopedEmployeeServiceImpl) new
InitialContext().lookup("java:global/EJB/EmployeeService");