geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fredrik Jonson <fred...@myrealbox.com>
Subject Re: Spring in Geronimo
Date Fri, 11 Sep 2009 11:37:24 GMT
Quintin Beukes wrote:
 
>  I had a look at the Spring in OEJB 3.1. Works well. Very nice feature.
>  My question is how I can get the same running in Geronimo.

I've used spring for webapps in G. Spring can be configured to lookup javaee
managed resources from jndi environment, and inject those as beans in the
context:

 <jee:jndi-lookup id="myEjb" jndi-name="MyEjbBean" resource-ref="true" />
 <bean id="somePojo" class="org.example.some.SomePojo"">
   <property name="myEjb" value="myEjb"/>
 </bean>

http://static.springsource.org/spring/docs/2.5.x/reference/xsd-config.html

-- 
Fredrik Jonson


Mime
View raw message