geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: WebServices and Spring Injection?
Date Sat, 28 Nov 2009 18:36:36 GMT

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
>


Mime
View raw message