On Sep 14, 2007, at 11:57 AM, David Blevins wrote:

It does have a thing called AnnotationProcessor which will inject @EJB, @Resource and the like by looking them up from the web module's jndi tree, but it never puts them in there in the first place. So effectively nothing is injected. So what we need to do is grab the web.xml, find all the servlets, filters, and listeners scrape them for annotations and create and bind the required objects into the web module's jndi tree. Then when Tomcat creates a servlet, filter, or listener the Tomcat AnnotationProcessor will again scrape the object for annotations, look for the objects in jndi, *find* them (we put them there) and finally inject them.

and that is what I'm working on right now.

-dain

Reply via email to