Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 44567 invoked from network); 13 Dec 2006 00:21:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2006 00:21:04 -0000 Received: (qmail 67242 invoked by uid 500); 13 Dec 2006 00:21:05 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 67187 invoked by uid 500); 13 Dec 2006 00:21:05 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 67175 invoked by uid 99); 13 Dec 2006 00:21:05 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Dec 2006 16:21:05 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of david.blevins@visi.com designates 208.42.156.9 as permitted sender) Received: from [208.42.156.9] (HELO cenn.mc.mpls.visi.com) (208.42.156.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Dec 2006 16:20:54 -0800 Received: from [192.168.42.22] (cpe-76-167-176-83.socal.res.rr.com [76.167.176.83]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by cenn.mc.mpls.visi.com (Postfix) with ESMTP id B1A2982A2 for ; Tue, 12 Dec 2006 18:20:32 -0600 (CST) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <6D8B611B-1E70-4FC2-9DA5-02BC78305E2D@visi.com> Content-Transfer-Encoding: 7bit From: David Blevins Subject: Re: Annotation processing Date: Tue, 12 Dec 2006 16:20:14 -0800 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org On Dec 12, 2006, at 3:14 PM, David Jencks wrote: > On Dec 12, 2006, at 1:07 PM, David Blevins wrote: >>> 4. add objects to inject resources >> >> Here's where I get confused. Add objects to inject resources into >> what? The confusing part is that injection is done on instances >> of components (servlets, ejbs). Maybe the Tomcat/Jetty >> integrations are a lot tighter than I thought they were. Are we >> actually creating servlet and filter instances themselves? > > Definitely not for tomcat. For jetty these are created by a > ServletHolder, which is wrapped into a gbean, so we could modify > the object creation code. I imagine there's some similar way to > customize tomcat, but I have no idea what it might be. > > In any case, my goal of using verbiage sufficiently general to be > difficult to argue with failed :-). I have no idea what is needed > nor how to do this. Do you have any advice? :) I have to imagine that both Jetty and Tomcat already have their own code for injecting the items from JNDI using the standard names [1], so if simply had some way to tell either of them which jndi names go with which fields we'd be good to go. [1] Granted the spec doesn't require you to inject straight from JNDI, but injection was intended to be done this way when the specs were written (even SessionContext is now in JNDI) and I'd be really surprised if there was anyone out there doing it differently. I'd be interested in what Jetty and Tomcat have in this regard. -David