You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bv...@apache.org on 2022/06/30 11:12:18 UTC

[camel] branch jolt-upgrade created (now 7c2fcf6cdd0)

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

bvahdat pushed a change to branch jolt-upgrade
in repository https://gitbox.apache.org/repos/asf/camel.git


      at 7c2fcf6cdd0 upgrade to jolt version 0.1.7

This branch includes the following new commits:

     new 7c2fcf6cdd0 upgrade to jolt version 0.1.7

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel] 01/01: upgrade to jolt version 0.1.7

Posted by bv...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bvahdat pushed a commit to branch jolt-upgrade
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 7c2fcf6cdd05b17e9778d09bfc067310c4c3bcf6
Author: Babak Vahdat <bv...@apache.org>
AuthorDate: Thu Jun 30 13:10:48 2022 +0200

    upgrade to jolt version 0.1.7
---
 .../main/java/org/apache/camel/component/jolt/JoltEndpoint.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/components/camel-jolt/src/main/java/org/apache/camel/component/jolt/JoltEndpoint.java b/components/camel-jolt/src/main/java/org/apache/camel/component/jolt/JoltEndpoint.java
index fee394c08ad..7d6d73c8397 100644
--- a/components/camel-jolt/src/main/java/org/apache/camel/component/jolt/JoltEndpoint.java
+++ b/components/camel-jolt/src/main/java/org/apache/camel/component/jolt/JoltEndpoint.java
@@ -206,13 +206,13 @@ public class JoltEndpoint extends ResourceEndpoint {
         }
 
         // now lets output the results to the exchange
-        Message out = exchange.getOut();
+        Message message = exchange.getMessage();
         if (getOutputType() == JoltInputOutputType.JsonString) {
-            out.setBody(JsonUtils.toJsonString(output));
+            message.setBody(JsonUtils.toJsonString(output));
         } else {
-            out.setBody(output);
+            message.setBody(output);
         }
-        out.setHeaders(exchange.getIn().getHeaders());
+        message.setHeaders(exchange.getIn().getHeaders());
     }
 
 }