sorry, I did not had enough time to work on it correctly.
At this moment, I wrote a small java class to split this as I wanted to.

otherwise, best way may be :

<camelContext trace="false" id="EDI_process"
xmlns="http://camel.apache.org/schema/spring";>
    <route id="EDI_splitter">
        <from uri="file://C:/test/in"/>
        <split>
            <tokenize token="^ENT" regex="true" xml="false"
includeTokens="false"></tokenize>
                        <setBody>
                                <simple>ENT*{body}</simple>
                        </setBody>
            <bean method="setUUIDasFileName"
beanType="com.company.CZVuuid"/>
            <to uri="file://C:/test/out"/>
        </split>
    </route>
</camelContext>

But I need to test ...



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Split-How-to-keep-token-when-splitting-a-multilines-files-tp5768991p5776452.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to