That's the classical Aggregator EIP [1].
And have a look at our unit tests [2].
[1] http://camel.apache.org/aggregator2.html
[2]
https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/
Best,
Christian
On Fri, Aug 10, 2012 at 12:37 PM, Matheen
Hi Mueller
my problem is with aggregation.I successfully converted all csv files to
different xml file by using bindy.
But i want all csv files data to a single xml file.
--
View this message in context:
http://camel.465427.n5.nabble.com/way-to-convert-multiple-csv-files-to-single-xml-file
Sorry for confusion...i'll try to make it clear
At first i had task to convert csv file to xml, i did it using bindy data
format..it worked very well.
Now i have task to convert two csv files into single XML file, both of the
csv files have different fields. All i want to do is create single XML
You didn't explain what your problem is. The conversion? The aggregation?
Something else?
Sent from a mobile device
Am 10.08.2012 08:35 schrieb "Matheen" :
> Hi yogesh
>
> thanks for reply.
>
> my scenario is there are two csv files order.csv and order_line.csv
> available at a time,now i have to
Hi yogesh
thanks for reply.
my scenario is there are two csv files order.csv and order_line.csv
available at a time,now i have to convert them in to xml format.
the data in xml file should be in the below format
data
...
..
data
thanks
--
View this message in context:
http://ca
Here is an example method to aggregate:
@SuppressWarnings("unchecked")
public void aggregateGroupMessages(Exchange groupedExchange)
{
List grouped =
groupedExchange.getProperty(Exchange.GROUPED_EXCHANGE, List.class);
for (Exchange ex
Hi Matheen,
Can you explain your problem a little more? Are all the files going to be
available at the same time? Do you know how many files you need to
aggregate?
For example, in pseudo code:
do all your bindy processing here but send to aggregator rather than
'fi
hi willem,
thanks for your reply.
i have gone through that aggregate concept,still i am unable to resolve my
problem.
can anyone help me with sample example
thanks in adavance
--
View this message in context:
http://camel.465427.n5.nabble.com/way-to-convert-multiple-csv-files-to-single-xml
Did you have a look at the Aggregator[1]?
I think it can resolve the issue that you meet.
[1]http://camel.apache.org/aggregator.html
--
Willem Jiang
FuseSource
Web: http://www.fusesource.com (http://www.fusesource.com/)
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/)