Grouping messages for batch processing

2013-10-22 Thread Tom.Fornoville
Hi everyone, I have the following use-case: * messages arrive on a queue, 1 message for each organisation be created/updated, messages that belong to the same transaction (= our own term, NOT a JPA transaction or something like that) all have the same transactionGUID * we need to group organisati

Traverse FTP tree

2013-09-05 Thread Tom.Fornoville
Hi everyone, On our ftp server we have a home directory for every customer where they can put their files, it look something like this: ftp-root -- 001 -- 20130905.xml -- feedback -- feedback_20130903.xml -- feedback_20130904.xml -- 002 -- 20130905.xml

Re: Flatpack and aggregation

2013-08-07 Thread Tom.Fornoville
Hi Zemian, Thanks for putting me on the right track with the idempotentConsumer! Since Flatpack puts the records in a Java Map in the Body I had to do a convertTo and ended up with the following: ... request.body["ACTION"] == "070" request.body["ORGANISATION"] This seems to work as e

Flatpack and aggregation

2013-08-06 Thread Tom.Fornoville
'm relatively new to Camel and guessing my problem can be solved with a combination of FlatPack and an aggregation but I'm not seeing how I can make it work without writing a lot of code. It starts with a fixed width file with 2 columns (actually more but only 2 are relevant): action_id and organi