users@glassfish.java.net

Re: Interplay between _at_ManagedBean and CDI?

From: Laird Nelson <ljnelson_at_gmail.com>
Date: Sat, 9 Jun 2012 14:26:51 -0400

On Fri, Jun 8, 2012 at 7:23 PM, Noah White <emailnbw_at_gmail.com> wrote:

> I have success using @Inject and @EJB inside my JAX-RS resource classes
> when I annotate them with @RequestScoped and include an empty beans.xml ..
> I don't use @ManagedBean
>

Excellent; it may be that the @ManagedBean workaround is no longer
necessary.

Also as a point of note the deployment time for our ear file has
probably...quintupled? with @Inject in there. I'm assuming this is due to
the massive amounts of scanning that Weld has to perform.

Best,
Laird

-- 
http://about.me/lairdnelson