cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r691146 - /cxf/branches/2.0.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java
Date Tue, 02 Sep 2008 08:23:37 GMT
Author: ffang
Date: Tue Sep  2 01:23:36 2008
New Revision: 691146

URL: http://svn.apache.org/viewvc?rev=691146&view=rev
Log:
[CXF-1779]exclude non-serializable property to JBI NormalizedMessage

Modified:
    cxf/branches/2.0.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java

Modified: cxf/branches/2.0.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.0.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java?rev=691146&r1=691145&r2=691146&view=diff
==============================================================================
--- cxf/branches/2.0.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java
(original)
+++ cxf/branches/2.0.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java
Tue Sep  2 01:23:36 2008
@@ -21,6 +21,7 @@
 
 import java.io.IOException;
 import java.io.InputStream;
+import java.io.Serializable;
 import java.util.Set;
 import java.util.logging.Level;
 import java.util.logging.Logger;
@@ -113,7 +114,9 @@
                     //copy properties
                     Set<String> keys = inMessage.keySet();
                     for (String key : keys) {
-                        msg.setProperty(key, inMessage.get(key));
+                        if (inMessage.get(key) instanceof Serializable) {
+                            msg.setProperty(key, inMessage.get(key));
+                        }
                     }
                     //copy contents
                     msg.setContent(new DOMSource(doc));



Mime
View raw message