camel-dev mailing list archives

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


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
client.deliver(client, endpoint.getPath(), exchange.getIn().getBody(), null);

And there is no API for passing in headers.

> Allow cometd component to send message headers with the message 
> ----------------------------------------------------------------
>                 Key: CAMEL-3824
>                 URL:
>             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
>             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:

View raw message