[
https://issues.apache.org/jira/browse/CAMEL-10343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15529961#comment-15529961
]
ASF GitHub Bot commented on CAMEL-10343:
----------------------------------------
GitHub user nd4av opened a pull request:
https://github.com/apache/camel/pull/1192
New configuration parameter added : allowSerializedHeaders
Only used for TCP when transferExchange is true. When set to true,
serializable objects in headers and properties will be added to the exchange.
see issue https://issues.apache.org/jira/browse/CAMEL-10343
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/nd4av/camel master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/1192.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1192
----
----
> Camel Netty4 allowSerializedHeaders
> -----------------------------------
>
> Key: CAMEL-10343
> URL: https://issues.apache.org/jira/browse/CAMEL-10343
> Project: Camel
> Issue Type: Improvement
> Components: camel-netty4
> Affects Versions: 2.17.2
> Reporter: Nicolas Duffillot
> Assignee: Andrea Cosentino
> Priority: Minor
> Labels: patch
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)