Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 6520 invoked from network); 28 Nov 2009 18:37:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Nov 2009 18:37:14 -0000 Received: (qmail 29143 invoked by uid 500); 28 Nov 2009 18:37:14 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 29054 invoked by uid 500); 28 Nov 2009 18:37:13 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 29045 invoked by uid 99); 28 Nov 2009 18:37:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Nov 2009 18:37:13 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.136.44.63] (HELO smtp108.prem.mail.sp1.yahoo.com) (98.136.44.63) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 28 Nov 2009 18:37:05 +0000 Received: (qmail 60298 invoked from network); 28 Nov 2009 18:36:43 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; b=JjLdoY8VfsyI8e14zpudWsP/xd5Ul+NQ0bCesqfbgpIhOKEjfoLQfOkICP3dvhuUG4+frS7U5Mi85+yAJsaH733Vi152eR5QuM/1wbLEwzEF2pikMewV8hYGGrd5mhkdR9XQJQ91kIw10LS2+j2/3rz7zeMSijMe0fsZbTabLww= ; Received: from 076-076-148-215.pdx.net (david_jencks@76.76.148.215 with plain) by smtp108.prem.mail.sp1.yahoo.com with SMTP; 28 Nov 2009 10:36:42 -0800 PST X-Yahoo-SMTP: .9oIUzyswBANsYgUm_5uPui0skTnzGJXJQ-- X-YMail-OSG: eDVxNQ8VM1lWFgra025JF2tMi5dV_AHdaeevepxZWKUhKyFFfNWG.fNN8lXnvLxXBA1GVh6xND1mNcHmz_UkFDO655oW_jK8M2jbtLxitljB1T9x3.WHofuv.BGGfY7GJFsb5vb9Mb.Va9K.UhIHiBVIz47F387LnGGCXsu7sErna6n1TuUp.73B93rfzTm1N18MBrbTliB29DgT8XJDL1hC.2DTVIk2hmiXF7rJKKzlgQrHun2U_39J2ryICHRDYaNCtfHfd8GgejTgf7WhMQyO7b0t5XohnvlTsF4eQ0XSZNDV1sxWJQjyCWO4ZrLn3fIEa0CT X-Yahoo-Newman-Property: ymail-3 Message-Id: From: David Jencks To: user@geronimo.apache.org In-Reply-To: <4746.1259408831@iinet.net.au> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: WebServices and Spring Injection? Date: Sat, 28 Nov 2009 10:36:36 -0800 References: <4746.1259408831@iinet.net.au> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org On Nov 28, 2009, at 3:47 AM, scottdc@iinet.net.au wrote: > Hi > > How can I inject Spring Beans into a WebService created through > Annotation and deployed through Geronimo. AFAIK you would have to write the following code for geronimo: 1. A spring integration that makes spring modules a geronimo app type. You might be able to make them integrated in javaee apps by writing a ModuleBuilderExtension that would look for spring plans in an ee module and fire them up. This wouldn't help with standalone modules but might be a good approach for spring apps embedded in ee apps. 2. A DI integration that gets spring components into the java:comp ee component jndi tree and also hooks up the annotation so something like @Resource can refer to a spring component. At this point I don't have an opinion on whether overloading an existing annotation such as @Resource or coming up with an entirely new one is a better approach. If you are interested in working on this I'd suggest considering the osgi blueprint service rather than spring as your target platform and working in geronimo trunk. I think the aries project in the apache incubator may be considering some functionality like this. Also I've seen that Apache James has done some experiments with assembling the server with spring while also using jsr 250 annotations. Are you aware of any other app servers that offer this kind of integration? thanks david jencks > > Scott >