You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2009/05/08 14:52:15 UTC

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/

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) {



Re: 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/

Posted by Willem Jiang <wi...@gmail.com>.
Hi Claus,

Thanks for pointing that out, I revert the changes which should not be
committed.

Willem

Claus Ibsen wrote:
> Hi
> 
> Willem, just remember to remove the System.out when you got it working :)
> 
> On Fri, May 8, 2009 at 2:52 PM,  <ni...@apache.org> wrote:
>> 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) {
>>
>>
>>
> 
> 
> 


Re: 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/

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Willem, just remember to remove the System.out when you got it working :)

On Fri, May 8, 2009 at 2:52 PM,  <ni...@apache.org> wrote:
> 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) {
>
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus
Apache Camel Reference Card:
http://refcardz.dzone.com/refcardz/enterprise-integration
Interview with me:
http://architects.dzone.com/articles/interview-claus-ibsen-about?mz=7893-progress