users@jersey.java.net

[Jersey] Re: Getting confused with EJB injection

From: Paul Sandoz <Paul.Sandoz_at_oracle.com>
Date: Thu, 20 Jan 2011 11:38:07 +0100

[resend due to java.net glitch]

On Jan 20, 2011, at 12:13 AM, Moises Lejter wrote:

> You could try annotating it with @ManagedBean - just to prod the
> runtime into realizing it really does want to do injection on it ...
>

Yes, or use CDI.

By default injection of EE resources are not supported unless you turn
the resource into a managed bean (and note that there are some
constraints when turning a resource class into a managed bean).

Paul.