camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAMEL-208) setOutHeader doesn't work in pipeline
Date Wed, 05 Dec 2007 12:03:28 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

James Strachan updated CAMEL-208:
---------------------------------

    Patch Info: [Patch Available]

> 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
>            Assignee: Hadrian Zbarcea
>         Attachments: pipeline.patch
>
>
> 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.


Mime
View raw message