You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Chandramouli Sagar M (JIRA)" <ji...@apache.org> on 2017/09/15 10:20:02 UTC
[jira] [Comment Edited] (CAMEL-11479) beanio - Unmarshalling
multiline values as multiple records
[ https://issues.apache.org/jira/browse/CAMEL-11479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16167664#comment-16167664 ]
Chandramouli Sagar M edited comment on CAMEL-11479 at 9/15/17 10:19 AM:
------------------------------------------------------------------------
First of all this is not fixed length case if I am not wrong but strange beanio core library gives what is required for the case given.
beanio - unmarshal is for record or single entry
camel-beanio - is not single record unmarshalling
So comparison is not valid. If camel-beanio can provide option to give similar to beanio used in example is what expectation in this case.
was (Author: mcmoulis):
First of all this is not fixed length case if I am not wrong but strange beanio core library gives what is required for the case given.
> beanio - Unmarshalling multiline values as multiple records
> -----------------------------------------------------------
>
> Key: CAMEL-11479
> URL: https://issues.apache.org/jira/browse/CAMEL-11479
> Project: Camel
> Issue Type: Improvement
> Components: camel-beanio
> Reporter: Manikanta A C
> Priority: Minor
>
> Referring to the example in http://camel.apache.org/beanio.html, we have a simple mapping file & a message with value spans more than one line.
> Using camel-beanio, only the contents in first line in the message is being read a one record into the exchange's body at one iteration.
> The next line is being treated as new record and unmarshalling breaks as BeanIOErrorHandler warns it as invalid record.
> We had to add a camel processor to remove the line breaks in the message before unmarshalling to read complete multi-line message, which may not be the best solution in all real time cases.
> Does camel-beanio read each line as different record?
> Is there any other way to still read multi-line values as single record using camel-beanio?
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)