You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ff...@apache.org on 2008/09/02 10:23:37 UTC

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

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));