[jboss-svn-commits] JBL Code SVN: r36059 - labs/jbossrules/trunk/drools-camel/src/main/java/org/drools/camel/component.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Nov 24 16:14:54 EST 2010


Author: salaboy21
Date: 2010-11-24 16:14:53 -0500 (Wed, 24 Nov 2010)
New Revision: 36059

Modified:
   labs/jbossrules/trunk/drools-camel/src/main/java/org/drools/camel/component/DroolsPolicy.java
Log:
JBRULES-2803: Drools Grid Impl2 - Drools Server integration
	- adding the InputStream for the PreCxfPSoapProcessor with augmented routes

Modified: labs/jbossrules/trunk/drools-camel/src/main/java/org/drools/camel/component/DroolsPolicy.java
===================================================================
--- labs/jbossrules/trunk/drools-camel/src/main/java/org/drools/camel/component/DroolsPolicy.java	2010-11-24 16:44:56 UTC (rev 36058)
+++ labs/jbossrules/trunk/drools-camel/src/main/java/org/drools/camel/component/DroolsPolicy.java	2010-11-24 21:14:53 UTC (rev 36059)
@@ -16,6 +16,7 @@
 
 package org.drools.camel.component;
 
+import java.io.ByteArrayInputStream;
 import java.util.HashSet;
 import java.util.Iterator;
 import java.util.List;
@@ -334,7 +335,7 @@
                 //Bad Hack - Need to remote it and fix it in Camel (if it's a camel problem)
                 // I need to re set the Body because the exchange loose the content at
                 // the begining of the method
-                 exchange.getIn().setBody(body);
+                 exchange.getIn().setBody(new ByteArrayInputStream(body.getBytes("UTF-8")));
 
                 boolean soap = false;
                 if ( !augmented && exchange.getFromEndpoint() instanceof CxfSpringEndpoint ) {



More information about the jboss-svn-commits mailing list