[weld-dev] Resource declarations outside Java EE

Gavin King gavin.king at gmail.com
Mon Nov 30 16:12:01 EST 2009


CDI doesn't do anything. The "container" whatever it is does all  
injection. Why is the internal impl of the container interesting to  
the user?

P.S. IMO, the spec more or less requires that the "EJB container",  
whatever that is, delegates back to the CDI InjectionTarget for all  
injection. So the sanest impl is to have the CDI impl do all  
injection. But these are details of no concern to the user.

Sent from my iPhone

On Nov 30, 2009, at 4:05 PM, Dan Allen <dan.j.allen at gmail.com> wrote:

> Great. Okay, just so that I am explaining this right in my talk, if  
> @Resource and family are on an EJB the EJB container does the  
> injection, but if the are on a managed bean (i.e., simple bean) then  
> CDI does the injection. Is that correct?
>
> - Dan Allen
>
> Sent from my Android-powered phone:
> An open platform for carriers, consumers
> and developers.
>
>> On Nov 30, 2009 6:38 AM, "Pete Muir" <pmuir at redhat.com> wrote:
>>
>> It does :-)
>>
>> We even have a test!
>> On 27 Nov 2009, at 15:01, Gavin King wrote: > Pete, does this work  
>> in, say, Tomcat: > > @Resour...
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20091130/f61149f9/attachment.html 


More information about the weld-dev mailing list