camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r686517 - /activemq/camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsBinding.java
Date Sat, 16 Aug 2008 16:03:35 GMT
Author: davsclaus
Date: Sat Aug 16 09:03:34 2008
New Revision: 686517

URL: http://svn.apache.org/viewvc?rev=686517&view=rev
Log:
Added missing Boolean to allowed types in JMS headers.

Modified:
    activemq/camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsBinding.java

Modified: activemq/camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsBinding.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsBinding.java?rev=686517&r1=686516&r2=686517&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsBinding.java
(original)
+++ activemq/camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsBinding.java
Sat Aug 16 09:03:34 2008
@@ -264,6 +264,7 @@
      * <ul>
      *   <li>any primitives and their counter Objects (Integer, Double etc.)</li>
      *   <li>String and any other litterals, Character, CharSequence</li>
+     *   <li>Boolean</li>
      *   <li>BigDecimal and BigInteger</li>
      *   <li>java.util.Date</li>
      * </ul>
@@ -285,6 +286,8 @@
             return headerValue.toString();
         } else if (headerValue instanceof CharSequence) {
             return headerValue.toString();
+        } else if (headerValue instanceof Boolean) {
+            return headerValue.toString();
         } else if (headerValue instanceof Date) {
             return headerValue.toString();
         }



Mime
View raw message