servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r413940 - /incubator/servicemix/trunk/servicemix-components/src/main/java/org/apache/servicemix/components/http/HttpInvoker.java
Date Tue, 13 Jun 2006 18:02:02 GMT
Author: gnodet
Date: Tue Jun 13 11:02:01 2006
New Revision: 413940

URL: http://svn.apache.org/viewvc?rev=413940&view=rev
Log:
SM-451: HttpInvoker is losing message properties and attachments

Modified:
    incubator/servicemix/trunk/servicemix-components/src/main/java/org/apache/servicemix/components/http/HttpInvoker.java

Modified: incubator/servicemix/trunk/servicemix-components/src/main/java/org/apache/servicemix/components/http/HttpInvoker.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-components/src/main/java/org/apache/servicemix/components/http/HttpInvoker.java?rev=413940&r1=413939&r2=413940&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-components/src/main/java/org/apache/servicemix/components/http/HttpInvoker.java
(original)
+++ incubator/servicemix/trunk/servicemix-components/src/main/java/org/apache/servicemix/components/http/HttpInvoker.java
Tue Jun 13 11:02:01 2006
@@ -47,6 +47,12 @@
         super.stop();
         connectionManager.shutdown();
     }
+    
+    public HttpInvoker() {
+        // By default, do not forward anything
+        setCopyAttachments(false);
+        setCopyProperties(false);
+    }
 
     protected boolean transform(MessageExchange exchange, NormalizedMessage in, NormalizedMessage
out) throws MessagingException {
         PostMethod method = new PostMethod(url);
@@ -63,6 +69,7 @@
 
             // now lets grab the output and set it on the out message
             if (defaultInOut) {
+                copyPropertiesAndAttachments(exchange, in, out);
                 marshaler.toNMS(out, method);
             }
             return defaultInOut;



Mime
View raw message