servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r691174 - /servicemix/components/engines/servicemix-camel/trunk/src/main/java/org/apache/servicemix/camel/JbiBinding.java
Date Tue, 02 Sep 2008 09:32:55 GMT
Author: ffang
Date: Tue Sep  2 02:32:54 2008
New Revision: 691174

URL: http://svn.apache.org/viewvc?rev=691174&view=rev
Log:
[SM-1540]servicemix-camel component should check if property value is serializable before
copy it from camel exchange to servicemix exchange

Modified:
    servicemix/components/engines/servicemix-camel/trunk/src/main/java/org/apache/servicemix/camel/JbiBinding.java

Modified: servicemix/components/engines/servicemix-camel/trunk/src/main/java/org/apache/servicemix/camel/JbiBinding.java
URL: http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-camel/trunk/src/main/java/org/apache/servicemix/camel/JbiBinding.java?rev=691174&r1=691173&r2=691174&view=diff
==============================================================================
--- servicemix/components/engines/servicemix-camel/trunk/src/main/java/org/apache/servicemix/camel/JbiBinding.java
(original)
+++ servicemix/components/engines/servicemix-camel/trunk/src/main/java/org/apache/servicemix/camel/JbiBinding.java
Tue Sep  2 02:32:54 2008
@@ -16,6 +16,7 @@
  */
 package org.apache.servicemix.camel;
 
+import java.io.Serializable;
 import java.net.URI;
 import java.net.URISyntaxException;
 import java.util.Map;
@@ -157,6 +158,9 @@
         Set<Map.Entry<String, Object>> entries = camelExchange.getIn().getHeaders().entrySet();
         for (Map.Entry<String, Object> entry : entries) {
             normalizedMessage.setProperty(entry.getKey(), entry.getValue());
+            if (entry.getValue() instanceof Serializable) {
+                normalizedMessage.setProperty(entry.getKey(), entry.getValue());
+            }
         }
     }
 



Mime
View raw message