camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r772961 - in /camel/trunk/components/camel-quickfix/src: main/java/org/apache/camel/component/quickfix/converter/ main/resources/META-INF/services/org/apache/camel/ test/java/org/apache/camel/component/quickfix/example/
Date Fri, 08 May 2009 12:52:15 GMT
Author: ningjiang
Date: Fri May  8 12:52:14 2009
New Revision: 772961

URL: http://svn.apache.org/viewvc?rev=772961&view=rev
Log:
CAMEL-1350 update the TypeConverter file

Modified:
    camel/trunk/components/camel-quickfix/src/main/java/org/apache/camel/component/quickfix/converter/QuickFixConverter.java
    camel/trunk/components/camel-quickfix/src/main/resources/META-INF/services/org/apache/camel/TypeConverter
    camel/trunk/components/camel-quickfix/src/test/java/org/apache/camel/component/quickfix/example/PassiveFixGateway.java

Modified: camel/trunk/components/camel-quickfix/src/main/java/org/apache/camel/component/quickfix/converter/QuickFixConverter.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-quickfix/src/main/java/org/apache/camel/component/quickfix/converter/QuickFixConverter.java?rev=772961&r1=772960&r2=772961&view=diff
==============================================================================
--- camel/trunk/components/camel-quickfix/src/main/java/org/apache/camel/component/quickfix/converter/QuickFixConverter.java
(original)
+++ camel/trunk/components/camel-quickfix/src/main/java/org/apache/camel/component/quickfix/converter/QuickFixConverter.java
Fri May  8 12:52:14 2009
@@ -72,11 +72,13 @@
 
     @Converter
     public static InputStream toInputStream(Message message) throws Exception {
+        System.out.println("Calling to inputStream");
         return IOConverter.toInputStream(toString(message).getBytes());
     }
 
     @Converter
     public static String toString(Message message) throws IOException {
+        System.out.println("Calling to string");
         return message.toString();
     }
 

Modified: camel/trunk/components/camel-quickfix/src/main/resources/META-INF/services/org/apache/camel/TypeConverter
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-quickfix/src/main/resources/META-INF/services/org/apache/camel/TypeConverter?rev=772961&r1=772960&r2=772961&view=diff
==============================================================================
--- camel/trunk/components/camel-quickfix/src/main/resources/META-INF/services/org/apache/camel/TypeConverter
(original)
+++ camel/trunk/components/camel-quickfix/src/main/resources/META-INF/services/org/apache/camel/TypeConverter
Fri May  8 12:52:14 2009
@@ -15,4 +15,4 @@
 # limitations under the License.
 #
 
-org.apache.camel.quickfix.component.converter
\ No newline at end of file
+org.apache.camel.component.quickfix.converter
\ No newline at end of file

Modified: camel/trunk/components/camel-quickfix/src/test/java/org/apache/camel/component/quickfix/example/PassiveFixGateway.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-quickfix/src/test/java/org/apache/camel/component/quickfix/example/PassiveFixGateway.java?rev=772961&r1=772960&r2=772961&view=diff
==============================================================================
--- camel/trunk/components/camel-quickfix/src/test/java/org/apache/camel/component/quickfix/example/PassiveFixGateway.java
(original)
+++ camel/trunk/components/camel-quickfix/src/test/java/org/apache/camel/component/quickfix/example/PassiveFixGateway.java
Fri May  8 12:52:14 2009
@@ -16,6 +16,8 @@
  */
 package org.apache.camel.component.quickfix.example;
 
+import java.io.InputStream;
+
 import org.apache.camel.spring.SpringRouteBuilder;
 import org.springframework.context.support.ClassPathXmlApplicationContext;
 
@@ -30,7 +32,7 @@
 public class PassiveFixGateway extends SpringRouteBuilder {
 
     public void configure() throws Exception {
-        from("quickfix-server:examples/server.cfg").to("quickfix-client:examples/client.cfg");
+        from("quickfix-server:examples/server.cfg").convertBodyTo(InputStream.class).to("quickfix-client:examples/client.cfg");
     }
 
     public static void main(String[] args) {



Mime
View raw message