Class 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)
    • Constructor Detail

      • CamelEndpointDispatcher

        public CamelEndpointDispatcher()
    • Method Detail

      • 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)