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 <[EMAIL PROTECTED]> wrote:
On 2/10/07, Dain Sundstrom <[EMAIL PROTECTED]> 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
