You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2006/06/13 20:02:02 UTC
svn commit: r413940 -
/incubator/servicemix/trunk/servicemix-components/src/main/java/org/apache/servicemix/components/http/HttpInvoker.java
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;