geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul McMahan" <paulmcma...@gmail.com>
Subject Re: GERONIMO-2816 patch
Date Sun, 11 Feb 2007 06:11:06 GMT
Tomcat enables resource injection by looking for annotations in
servlets, filters, and listeners.  It's pretty efficient because it
already knows which classes implement those interfaces from processing
web.xml.  See http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/WebAnnotationSet.java

Best wishes,
Paul

On 2/10/07, Jacek Laskowski <jacek@laskowski.net.pl> wrote:
> On 2/10/07, Dain Sundstrom <dain@iq80.com> wrote:
> > Are you sure you must scan all classes in the web module for @EJB
> > annotations?
>
> I haven't checked the patch, but what Dain said made me think we could
> overdo the annotation processing. Not all classes might get annotated
> with @EJB(s). Perhaps there's a way to ask a web container for special
> classes and check them out whether they use annotation or not? Does
> Tomcat 6 provide a annotation processing facility?
>
> Jacek
>
> --
> Jacek Laskowski
> http://www.JacekLaskowski.pl
>

Mime
View raw message