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

Camel flatpack component drops all headers from the original message

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      In the simple example:

      from("file:/foo.csv")
         .setHeader("MyHeader", constant("Hello"))
         .to("flatpack:foo");
      
      from("flatpack:foo")
         .to("bean:importer");
      

      Header "MyHeader" is not being passed to the bean in the second route.

      Looking at Camel Flatpack code I see that in FixedLengthEndpoint.processDataSet it creates an exchange object from scratch and, thus, looses any incoming headers.

      Attachments

        Activity

          People

            muellerc Christian Müller
            dragisak Dragisa Krsmanovic
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: