Announcement Announcement Module
Collapse
No announcement yet.
-servlet.xml and param Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • -servlet.xml and param

    Hello,
    I param a user-servlet.xml like this and it is working .

    <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 ?

    Best Regards

  • #2
    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

    Comment

    Working...
    X