[weld-dev] Resource declarations outside Java EE

Dan Allen dan.j.allen at gmail.com
Mon Nov 30 18:49:43 EST 2009


Right, but as far as I understand (and from personal experience) servlet
containers don't honor @Resource and family. This is why I hate these
servlet containers, because people notice these magic features don't work
and so they seek out a container (like Spring) to solve their problem
(inject a datasource for instance). So while the developer shouldn't be
concerned, they need to be reassured that w/ Weld in a servlet container,
they are going to get these injections, putting the onus on Weld to provide
them.

(Frankly, servlet containers really muddy our message. But I also appreciate
their simplicity and convenience.)

- Dan Allen

Sent from my Android-powered phone:
An open platform for carriers, consumers
and developers.

On Nov 30, 2009 4:12 PM, "Gavin King" <gavin.king at gmail.com> wrote:

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...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20091130/2a060e7c/attachment.html 


More information about the weld-dev mailing list