camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manikanta A C (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-11479) beanio - Unmarshalling multiline values as single record
Date Thu, 29 Jun 2017 10:35:00 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-11479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Manikanta A C updated CAMEL-11479:
----------------------------------
    Description: 
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?

  was:
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?


> beanio - Unmarshalling multiline values as single record
> --------------------------------------------------------
>
>                 Key: CAMEL-11479
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11479
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-beanio
>            Reporter: Manikanta A C
>
> 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)

Mime
View raw message