camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Elezabeth <Elezabeth.greg...@ibsplc.com>
Subject Re: Jboss 7 and camel -bindy 2.10
Date Wed, 10 Oct 2012 04:46:06 GMT
Hi Claus,

This is my route Builder class.

package jp.co.airlink.gavss.adapter.eai.oag;

import org.apache.camel.Exchange;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat;
import org.apache.camel.model.dataformat.BindyType;
import org.apache.camel.spi.DataFormat;

/**
 * @author A-4050
 */
public class OagRouteBuilder extends RouteBuilder {

    //DataFormat bindy =  new
BindyCsvDataFormat("jp.co.airlink.gavss.adapter.eai.oag");
    
    Exchange exchnge = null;
    String fileName = null;
 
    @Override
    public void configure() throws Exception {
       
from("servlet:///camel?matchOnUriPrefix=true").inOnly("seda:myfile");
        from("seda:myfile").inOnly("bean:fileConsumer?method=consumeFile")
       
.split().tokenize("\n",2000).streaming().unmarshal().bindy(BindyType.Csv, 
"jp.co.airlink.gavss.adapter.eai.oag")
                .to("bean:validateFileInput?method=receiveOagData");
       
        
    }
}



-----
Thanks & Regards
Elz
--
View this message in context: http://camel.465427.n5.nabble.com/Jboss-7-and-camel-bindy-2-10-tp5720739p5720825.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message