camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Kalukiewicz (JIRA)" <>
Subject [jira] Updated: (CAMEL-208) setOutHeader doesn't work in pipeline
Date Mon, 05 Nov 2007 18:12:23 GMT


Roman Kalukiewicz updated CAMEL-208:

    Attachment: pipeline.patch

File with JUnit test and patch itself attached.

> setOutHeader doesn't work in pipeline
> -------------------------------------
>                 Key: CAMEL-208
>                 URL:
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.3.0
>            Reporter: Roman Kalukiewicz
>         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.

View raw message