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

Camel Netty4 allowSerializedHeaders

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.17.2
    • 2.18.0
    • camel-netty4
    • Novice

    Description

      When transferExchange = true, NettyPayloadHelper.getIn(NettyEndpoint, Exchange) calls DefaultExchangeHolder.marshal(exchange) that calls DefaultExchangeHolder.marshal(exchange, true, false);

      Third parameter "allowSerializedHeaders" is forced to false and there seems to be no way to call the marshal method with this parameter set to true.

      Because of that, the marshalling of the exchange properties doesn't include the serializable pojos as the "DefaultExchangeHolder.getValidHeaderValue" method excludes those serailizable object when allowSerializedHeaders=false :

      if (allowSerializedHeaders) {
      if (headerValue instanceof Serializable)

      { return headerValue; }

      }

      Hoping to be clear enough.

      Attachments

        Issue Links

          Activity

            People

              acosentino Andrea Cosentino
              nicolas.duffillot@gmail.com Nicolas Duffillot
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  Remaining Estimate - 4h
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified