camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Lucas (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-4964) BeanIO dataformat
Date Sun, 05 Feb 2012 11:55:53 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-4964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13200730#comment-13200730
] 

James Lucas commented on CAMEL-4964:
------------------------------------

Great, I'll have a look at the changes so I know what to do the next time.

The header interface was intended to solve the following problem I was faced with. I have
a file in the format used in the test, e.g.

HEADERROW1  SOME DATA
HEADERROW2  SOME MORE DATA
END OF HEADER
DATA ROW 1  DATA
DATA ROW 2  DATA
END OF FILE

The header row data is applicable to all of the data rows and I wanted to unmarshal the file
into a list, split the list and process each row according to its type but whilst utilising
some of the data in the header rows. In the real world example I was tackling, the header
had a date in it which was common to all data rows. This allowed me to solve that in a fairly
generic way but I wasn't sure if there was a way to do this using Camel rather than the interface.
If there is and you can point me in the right direction it would be really useful.

As for the logging, I wondered that myself. Perhaps a finer level might be better if the errors
are set to be ignored? 





                
> BeanIO dataformat
> -----------------
>
>                 Key: CAMEL-4964
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4964
>             Project: Camel
>          Issue Type: New Feature
>            Reporter: James Lucas
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.10.0
>
>         Attachments: james_l-camel-beanio-75d432e2f97c.zip
>
>
> Hello,
> I've been using Camel for marshalling and unmarshalling data from flat files (mainly
CSV and fixed width) and have found it to be really great. There are a few cases that the
existing bindy/flatpack dataformats don't seem to support (files with multiple different record
types, nested types) and after looking around I came across BeanIO which supports some of
these cases. I've created a dataformat which uses BeanIO and wondered if it would be useful
for anyone else, so thought I would submit it.
> Here's what I have...
> https://bitbucket.org/james_l/camel-beanio
> BeanIO: http://www.beanio.org - It's Apache 2.0 licensed. I'm not involved with BeanIO
at all but did mail them to ask if they were OK for me to submit this.
> If you think it's of use to others then it'd be great to see it as a Camel dataformat.
> Thanks!
> James

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message