I have a big xml file and wanted to split it in small individual files with the Apache Camel Splitter. Therefore I used the code of the example:
<route>
<from uri="file:inbox"/>
<split streaming="true>
<tokenize token="order" xml="true"/>
<to uri="activemq:queue:order"/>
</split>
</route>
my xml file looks so:
<orders>
<order>
<Parameter Name="CustomerID" Value="701423"/>
</order>
<order>
<Parameter Name="CustomerID" Value="7011337"/>
</order>
<order>
<Parameter Name="CustomerID" Value="701789"/>
</order>
</orders>
At the end my splitted message looks like the followings:
<order>
<Parameter Name="CustomerID" Value="701789"/>
</order>
I've just only one file with the last order of the big xml file instead of many small xml files. Could you tell me what is wrong? Thank you so much!
No comments:
Post a Comment