camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve973 <>
Subject Re: Need help in processing comma seperated text file
Date Fri, 23 Sep 2016 09:26:27 GMT
It might help to show us an example of the data that you are trying to
transform.  If the files are not too large, then simply using the file
component and then invoking a CSV library (such as from within a processor should give you
what you want.  Depending on your use case, to arrive at a more optimal and
efficient solution, you might have to show us what your data looks like.


On Thu, Sep 22, 2016 at 10:30 PM, <> wrote:

> Thanks for the response. I would like to use Camel to read the file,
> process it and generate a new CSV file to send it to a different system.
> I get this file from a different system X and I need to process and
> transform it to CSV file in a different format which can be understood by
> system Y.
> I can try to do that but the problem here is task and data are always
> associated with each other. I'm not sure how to dynamically split based on
> task.1 or task.2 or task.n.
> My goal is to read this file and generate a new CSV file in a different
> format.
> Can you point me/send me sample code to split the file by task?
> I do really appreciate your help.
> Thank you.
> On Sep 23, 2016 01:25, "DariusX [via Camel]" <
>> wrote:
> It isn't clear how you want to use Camel in this picture. if it is simply
> to poll for files, and if the file is not huge, a simple/naive approach
> would be to read in the whole file and do all the steps you need. All as a
> single Processor following the "from:file" consumer.
> The the Data/Task sections always follow one another, as in your example,
> you could attempt to split the file into sections that way, and handle each
> split task differently, based on the "operation". It will be more complex
> to code. So the question is: what would you gain by this?
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> comma-seperated-text-file-tp5787930p5787941.html
> To unsubscribe from Need help in processing comma seperated text file,
> click
> here
> <
> unsubscribe_by_code&node=5787930&code=cmFnaGF2ZW5kZXIuYW50aHdhckBnbW
> FpbC5jb218NTc4NzkzMHwxMTkyNDM5ODIz>
> .
> <
> viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.
> BasicNamespace-nabble.view.web.template.NabbleNamespace-
> nabble.view.web.template.NodeNamespace&breadcrumbs=
> notify_subscribers%21nabble%3Aemail.naml-instant_emails%
> 21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> --
> View this message in context: http://camel.465427.n5.nabble.
> com/Need-help-in-processing-comma-seperated-text-file-
> tp5787930p5787945.html
> Sent from the Camel - Users mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message