You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/02/25 09:04:50 UTC

[camel] 02/02: Revert "CAMEL-14020 - Migrate getOut to getMessage in camel-spring-integration"

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 6c9cfbe648f862719d449f3187d279b8f409b7bb
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Feb 25 10:03:58 2020 +0100

    Revert "CAMEL-14020 - Migrate getOut to getMessage in camel-spring-integration"
    
    This reverts commit d3586cc0af2af7719f5612ab3398d079f398e1ef.
---
 .../org/apache/camel/component/spring/integration/MyProcessor.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-spring-integration/src/test/java/org/apache/camel/component/spring/integration/MyProcessor.java b/components/camel-spring-integration/src/test/java/org/apache/camel/component/spring/integration/MyProcessor.java
index 716d97c..ccc7146 100644
--- a/components/camel-spring-integration/src/test/java/org/apache/camel/component/spring/integration/MyProcessor.java
+++ b/components/camel-spring-integration/src/test/java/org/apache/camel/component/spring/integration/MyProcessor.java
@@ -23,9 +23,9 @@ public class MyProcessor implements Processor {
 
     @Override
     public void process(Exchange exchange) throws Exception {
-        exchange.getMessage().setHeader("Status", "Done");
+        exchange.getOut().setHeader("Status", "Done");
         String result = exchange.getIn().getBody() + " is processed";
-        exchange.getMessage().setBody(result);
+        exchange.getOut().setBody(result);
     }
 
 }