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:44 UTC
svn commit: r691147 -
/cxf/branches/2.1.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java
Author: ffang
Date: Tue Sep 2 01:23:43 2008
New Revision: 691147
URL: http://svn.apache.org/viewvc?rev=691147&view=rev
Log:
[CXF-1779]exclude non-serializable property to JBI NormalizedMessage
Modified:
cxf/branches/2.1.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java
Modified: cxf/branches/2.1.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.1.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java?rev=691147&r1=691146&r2=691147&view=diff
==============================================================================
--- cxf/branches/2.1.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java (original)
+++ cxf/branches/2.1.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java Tue Sep 2 01:23:43 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));