Announcement Announcement Module
Collapse
No announcement yet.
Parent Context and MessageDispatcherServlet Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Parent Context and MessageDispatcherServlet

    I have created 2 web service apps using MessageDispatcherServlet and both want to use an underlying stateful service layer. I create and load this layer via "parentContextKey". The problem is that the first web service app that loads works perfectly the second does not. It seems that the second app cannot find the "parentContextKey" for some reason. If I remove the first web service app and then just run the second it works just fine.

    Anyone have any ideas on how to solve this one.

    Here is my web.xml
    <context-param>
    <param-name>parentContextKey</param-name>
    <param-value>services.context</param-value>
    </context-param>

    <listener>
    <listener-class>
    org.springframework.web.context.ContextLoaderListe ner
    </listener-class>
    </listener>

    <servlet>
    <servlet-name>spring-ws</servlet-name>
    <servlet-class>
    org.springframework.ws.transport.http.MessageDispa tcherServlet
    </servlet-class>
    <init-param>
    <param-name>transformWsdlLocations</param-name>
    <param-value>true</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>

    <!-- Map all requests to this servlet -->
    <servlet-mapping>
    <servlet-name>spring-ws</servlet-name>
    <url-pattern>/*</url-pattern>
    </servlet-mapping>
Working...
X