setOutHeader doesn't work in pipeline
-------------------------------------

                 Key: CAMEL-208
                 URL: https://issues.apache.org/activemq/browse/CAMEL-208
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 1.3.0
            Reporter: Roman Kalukiewicz


Construct like:
{code}
setOutHeader("header", constant("test")).
setOutBody(constant("body"));
{code}
doesn't work because {{setOutHeader()}} sets only header on out message that 
has {{null}} body. Then in pipeline when it creates new exchange it copies out 
message to in _only_ when out message is not null and it contains not null body 
(that is not the case here). So pipeline copies in -> in so our out header is 
lost.

Set out header should just copy message body or (I believe better solution) 
{{createNewExchange}} in pipeline should use out message even if body is null 
(consistent with {{ExchangeHelper.copyResults}}).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to