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

Camel StreamCache does not work with CXF consumer for InOut messages

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.14.1
    • 2.20.0
    • camel-cxf
    • None
    • Patch Available
    • Unknown

    Description

      If a route that is started by a CXF consumer and has an InOut exchange pattern (meaning that the CXF consumer is returning a response back to the caller) contains a StreamCache as message object that is not in memory, returning the payload will fail.

      The reason for this is that an on-disk stream cache in Camel will be removed when the LUW ends, but CXF will return the response afterwards.

      See the two attached unit tests for details.

      I don't like the actual patch too much, as it copies on-disk camel stream caches into CXF stream caches when creating the CXF message object in camel CXF, but this is about the last step before the LUW ends (and the file gets deleted).

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            siano Stephan Siano
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: