Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11479

beanio - Unmarshalling multiline values as multiple records

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.20.0
    • camel-beanio
    • None
    • Unknown

    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?

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            manikanta.ac Manikanta A C
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: