You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2014/02/13 13:43:21 UTC

[jira] [Commented] (CAMEL-7148) Added the ability to send messages to several participants.

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

Willem Jiang commented on CAMEL-7148:
-------------------------------------

Applied the patch into master with thanks to Denis and fixed the test error of XmppRouteMultipleProducersSingleConsumerTest.

> Added the ability to send messages to several participants.
> -----------------------------------------------------------
>
>                 Key: CAMEL-7148
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7148
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-xmpp
>    Affects Versions: 2.10.7
>            Reporter: Denis Kolotenko
>            Assignee: Willem Jiang
>            Priority: Minor
>              Labels: newbie, patch, xmpp
>         Attachments: change_module_camel-xmpp_(use_header_CamelXmppTo_for_customs_participant).patch
>
>
> Use header with name "CamelXmppTo" to send jabber messages to several participants.
> Example:
> {code}
> <to uri="sql:select Message, Participant from SomeTable"/>
> <split>
>     <simple>${body}</simple>
>     <setHeader headerName="CamelXmppTo">
>         <simple>${body[Participant]}</simple>
>     </setHeader>
>     <setBody>
>         <simple>${body[Message]}</simple>
>     </setBody>
>     <to uri="xmpp://user@jabber.org/not_used?password=pass"/>
> </split>
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)