camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] [Commented] (CAMEL-11479) beanio - Unmarshalling multiline values as multiple records
Date Tue, 19 Sep 2017 18:07:00 GMT


Claus Ibsen commented on CAMEL-11479:

Okay this is not supported as camel-beanio uses beanio's Reader (when you use dataformat unmarshal)
and this Reader is for reading multiple records.
Its unusual to just read a single record and therefore was not supported.

Typically people have a row of records they want to unmarshal to a List<POJO> classes,
and hence why the reader is in-use.

> beanio - Unmarshalling multiline values as multiple records
> -----------------------------------------------------------
>                 Key: CAMEL-11479
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-beanio
>            Reporter: Manikanta A C
>            Priority: Minor
> Referring to the example in, 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

View raw message