camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [1/3] git commit: CAMEL-7975 Reversed the header encoding in camel-sjms with thanks to Aaron
Date Thu, 30 Oct 2014 02:34:02 GMT
Repository: camel
Updated Branches:
  refs/heads/master 3fc8e514f -> 76c3a420c


CAMEL-7975 Reversed the header encoding in camel-sjms with thanks to Aaron


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

Branch: refs/heads/master
Commit: 76c3a420cda9d24eb7aed4c239530d8acb9b640d
Parents: 8c5769f
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Thu Oct 30 10:33:17 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Thu Oct 30 10:33:50 2014 +0800

----------------------------------------------------------------------
 .../apache/camel/component/sjms/SjmsExchangeMessageHelper.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/76c3a420/components/camel-sjms/src/main/java/org/apache/camel/component/sjms/SjmsExchangeMessageHelper.java
----------------------------------------------------------------------
diff --git a/components/camel-sjms/src/main/java/org/apache/camel/component/sjms/SjmsExchangeMessageHelper.java
b/components/camel-sjms/src/main/java/org/apache/camel/component/sjms/SjmsExchangeMessageHelper.java
index 7d2c8c4..7b7c66b 100644
--- a/components/camel-sjms/src/main/java/org/apache/camel/component/sjms/SjmsExchangeMessageHelper.java
+++ b/components/camel-sjms/src/main/java/org/apache/camel/component/sjms/SjmsExchangeMessageHelper.java
@@ -454,7 +454,8 @@ public final class SjmsExchangeMessageHelper {
                     throw new IllegalHeaderException("Header " + key + " is not a legal JMS
header name value");
                 }
                 Object value = jmsMessage.getObjectProperty(key);
-                headers.put(key, value);
+                String decodedName = new DefaultJmsKeyFormatStrategy().decodeKey(key);
+                headers.put(decodedName, value);
             }
         }
         if (out) {


Mime
View raw message