org.apache.camel.component.spring.ws.bean
Class CamelEndpointDispatcher
java.lang.Object
org.apache.camel.component.spring.ws.bean.CamelEndpointDispatcher
- All Implemented Interfaces:
- org.springframework.ws.server.endpoint.MessageEndpoint
public class CamelEndpointDispatcher
- extends Object
- implements org.springframework.ws.server.endpoint.MessageEndpoint
Spring MessageEndpoint
for dispatching messages received by Spring-WS to a Camel
endpoint. This class needs to be registered in the Spring ApplicationContext
when consuming messages using the spring-ws:beanname: URI scheme.
For example, when using a route such as from("spring-ws:beanname:stockQuote").to("...");
the following bean definition needs to be present in the ApplicationContext:
<bean id="stockQuote" class="org.apache.camel.component.spring.ws.bean.CamelEndpointDispatcher" />
- See Also:
AbstractMapBasedEndpointMapping.setMappings(java.util.Properties)
,
AbstractMapBasedEndpointMapping.setEndpointMap(java.util.Map)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CamelEndpointDispatcher
public CamelEndpointDispatcher()
invoke
public void invoke(org.springframework.ws.context.MessageContext messageContext)
throws Exception
- Specified by:
invoke
in interface org.springframework.ws.server.endpoint.MessageEndpoint
- Throws:
Exception
getConsumerMessageEndpoint
public org.springframework.ws.server.endpoint.MessageEndpoint getConsumerMessageEndpoint()
setConsumerMessageEndpoint
public void setConsumerMessageEndpoint(org.springframework.ws.server.endpoint.MessageEndpoint consumer)
Apache Camel