camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/3] camel git commit: Fixed how spring-ws creates exchange in consumer as it should use the endpoint to do it.
Date Wed, 21 Oct 2015 11:47:10 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.15.x 1edbeca62 -> d92ff43d2
  refs/heads/camel-2.16.x 28dca3552 -> 37019e917
  refs/heads/master 29ebd6dfe -> b5c234f13


Fixed how spring-ws creates exchange in consumer as it should use the endpoint to do it.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/b5c234f1
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/b5c234f1
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/b5c234f1

Branch: refs/heads/master
Commit: b5c234f13facf59b0909b6a567de1beb113246f5
Parents: 29ebd6d
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Wed Oct 21 13:49:12 2015 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Wed Oct 21 13:49:12 2015 +0200

----------------------------------------------------------------------
 .../camel/component/spring/ws/SpringWebserviceConsumer.java      | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/b5c234f1/components/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/SpringWebserviceConsumer.java
----------------------------------------------------------------------
diff --git a/components/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/SpringWebserviceConsumer.java
b/components/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/SpringWebserviceConsumer.java
index 5514ff5..3acd9b2 100644
--- a/components/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/SpringWebserviceConsumer.java
+++ b/components/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/SpringWebserviceConsumer.java
@@ -18,7 +18,6 @@ package org.apache.camel.component.spring.ws;
 
 import java.util.Iterator;
 import java.util.Map;
-
 import javax.xml.namespace.QName;
 import javax.xml.transform.Source;
 
@@ -29,7 +28,6 @@ import org.apache.camel.Message;
 import org.apache.camel.Processor;
 import org.apache.camel.converter.jaxp.XmlConverter;
 import org.apache.camel.impl.DefaultConsumer;
-import org.apache.camel.impl.DefaultExchange;
 import org.springframework.ws.WebServiceMessage;
 import org.springframework.ws.context.MessageContext;
 import org.springframework.ws.mime.Attachment;
@@ -54,7 +52,7 @@ public class SpringWebserviceConsumer extends DefaultConsumer implements
Message
      * Invoked by Spring-WS when a {@link WebServiceMessage} is received
      */
     public void invoke(MessageContext messageContext) throws Exception {
-        Exchange exchange = new DefaultExchange(endpoint.getCamelContext(), ExchangePattern.InOptionalOut);
+        Exchange exchange = getEndpoint().createExchange(ExchangePattern.InOptionalOut);
         populateExchangeFromMessageContext(messageContext, exchange);
 
         // start message processing


Mime
View raw message