
Originally Posted by
Arjen Poutsma
Hi,
I've just implemented a new feature for Spring-WS, which makes its usage more convenient. In the past, it was necessary to define a DispatcherServlet, a MessageEndpointHandlerAdapter, and a MessageDispatcher seperately for each Spring-WS project. The idea behind this is that the MessageDispatcher is completely agnostic of the ins and outs of HTTP, since it is just a form of transport.
However, most people want to expose their Web services using HTTP (they are called Web services for a reason), so I added a convience class called MessageDispatcherServlet
Can this be configured to use a service layer context as follows:
Code:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
<context-param>
<param-name>locatorFactorySelector</param-name>
<param-value>net/blabla/spring/beanRefContext.xml</param-value>
</context-param>
<context-param>
<param-name>parentContextKey</param-name>
<param-value>servicelayer-context</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>