You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2008/07/11 10:54:00 UTC
[jira] Created: (CAMEL-697) transform() doesnt propogate headers
transform() doesnt propogate headers
------------------------------------
Key: CAMEL-697
URL: https://issues.apache.org/activemq/browse/CAMEL-697
Project: Apache Camel
Issue Type: Bug
Components: camel-core
Affects Versions: 1.4.0
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Fix For: 1.4.0
The new transform() DSL doesn't propogate headers so you can not do:
{code}
from("direct:four")
.transform().constant("London")
.to("mock:result");
{code}
And expect that any headers on the exchange at direct:four is received after the transform
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-697) transform() doesnt propogate headers
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44190#action_44190 ]
Claus Ibsen commented on CAMEL-697:
-----------------------------------
The solution is to add this in the TransformProcessor
{code}
public void process(Exchange exchange) throws Exception {
Object newBody = expression.evaluate(exchange);
exchange.getOut().setBody(newBody);
// propogate headers
exchange.getOut().getHeaders().putAll(exchange.getIn().getHeaders());
super.process(exchange);
}
{code}
> transform() doesnt propogate headers
> ------------------------------------
>
> Key: CAMEL-697
> URL: https://issues.apache.org/activemq/browse/CAMEL-697
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 1.4.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 1.4.0
>
>
> The new transform() DSL doesn't propogate headers so you can not do:
> {code}
> from("direct:four")
> .transform().constant("London")
> .to("mock:result");
> {code}
> And expect that any headers on the exchange at direct:four is received after the transform
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-697) transform() doesnt propogate headers
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-697.
-------------------------------
Resolution: Fixed
> transform() doesnt propogate headers
> ------------------------------------
>
> Key: CAMEL-697
> URL: https://issues.apache.org/activemq/browse/CAMEL-697
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 1.4.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 1.4.0
>
>
> The new transform() DSL doesn't propogate headers so you can not do:
> {code}
> from("direct:four")
> .transform().constant("London")
> .to("mock:result");
> {code}
> And expect that any headers on the exchange at direct:four is received after the transform
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.