camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject Camel - BeanIO integration
Date Mon, 09 Jul 2012 23:34:00 GMT
It is good to know that Camel 2.10 has integration with BeanIO. I am trying
to do an example which reads a file from a location and does the process and
writes it to different file. I have written the below route, but I am not
sure if it is right. I couldn’t find any documentation for this.
Can some please help me in validating the route ?

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns=""

    <bean id="process" class="beanIOTest.ProcessDeduction"/>

    <bean id="myAggregationStrategy"

    <camelContext xmlns="">
    		<beanio id="deduction" mapping="classpath:Deduction.xml"
    		<beanio id="deductionOutput" mapping="classpath:DeductionOutput.xml"
    		<from uri="file:C:/download/chargecard.txt"/>
    		<unmarshal ref="deduction"/>
    		<split strategyRef="myAggregationStrategy">
      			<bean ref="process"></bean>
      			<to uri="file:C:/download/chargecardOutput.txt"/> // Do I need to
have it hear as well ? 
    		<marshal ref="deductionOutput"/>
    		<to uri="file:C:/download/chargecardOutput.txt"/>


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message