I think it's fair to say that in a JavaEE 6 environment @Inject really only makes sense in the context of CDI (jsr299).
Without CDI @Resource remains a (loosely typed) solution which Now also applies to the new javax.annotations.ManagedBean. In GlassFish v3, @Resource is also used to inject OSGi declarative services in regular JavaEE artiacts. --Alexis On 25 nov. 2009, at 10:38, Fabrizio Giudici <[email protected] > wrote: > Stuart McCulloch wrote: >> >> >> >> Or you could always support both annotations, as they're not mutually >> exclusive. >> > Great. You also answered to a couple of questions that I hadn't put > yet ;-) > > -- > Fabrizio Giudici - Java Architect, Project Manager > Tidalwave s.a.s. - "We make Java work. Everywhere." > weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/people > [email protected] > > -- > > You received this message because you are subscribed to the Google > Groups "The Java Posse" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected] > . > For more options, visit this group at > http://groups.google.com/group/javaposse?hl=en > . > > -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
