@EJB and @Resource injections (Java EE-style injection) can only be
performed on component classes (see Java EE 6 Platform spec Table EE.5-1).
It does not incluee any JAX-RS types.
You should be able to use @Inject to inject ejb ref, provided you write some
cdi glue code to look up ejb's portable global jndi name under the surface.
Then you can also remove ejb-ref from deployment descriptors, with some loss
of flexibility.
--
[Message sent by forum member 'cf126330']
View Post: http://forums.java.net/node/825811