camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-3824) Allow cometd component to send message headers with the message
Date Sat, 02 Apr 2011 10:12:05 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-3824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014981#comment-13014981
] 

Claus Ibsen commented on CAMEL-3824:
------------------------------------

What do you mean, the consumer is used for Camel to receive incoming messages.
So if the CometdConsumer has to add headers to the Exchange then those headers must come from
cometd. And I can't see how Cometd does that. Maybe you can take a 2nd look.

If you on the other hand talk about CometdProducer then it uses this method to send a msg
to Comentd
{code}
client.deliver(client, endpoint.getPath(), exchange.getIn().getBody(), null);
{code}

And there is no API for passing in headers.

> Allow cometd component to send message headers with the message 
> ----------------------------------------------------------------
>
>                 Key: CAMEL-3824
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3824
>             Project: Camel
>          Issue Type: Improvement
>    Affects Versions: 2.6.0
>            Reporter: Joshua Watkins
>            Priority: Minor
>
> Currently the cometd component ignores message headers. 
> ======
> Code snippet from CometdConsumer.java:
>             Message message = new DefaultMessage();
>             message.setBody(data);
>             Exchange exchange = endpoint.createExchange();
>             exchange.setIn(message);
> ======
> Exchange message headers should be maintained (perhaps with a flag?).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message