-
-servlet.xml and param
Hello,
I param a user-servlet.xml like this and it is working :cool: .
<bean id="userImpl" class="com.xxx.xxx.UserProxyImpl" scope="singleton" dependency-check="objects">
</bean>
<bean name="/UserService" class="org.springframework.remoting.httpinvoker.Ht tpInvokerServiceExporter">
<property name="service" ref="userImpl"/>
<property name="serviceInterface" value="com.xxx.xxx.UserProxy"/>
</bean>
The com.xxx.xxx.UserProxyImpl class is already specified in an other Spring xml file and i dont want declare again the bean in the -servlet.xml file.
How I can do it :confused: ?
Best Regards
-
Hi,
normally you can access all beans that are in parent applicationcontext.
So you can load the "other" spring beand definition in a root webapplicationcontext through the contextloadlistener, after that you can access them in you child applicationcontext.
regards
agim