Denis Kolotenko created CAMEL-7148:
--------------------------------------

             Summary: 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
            Priority: Minor
         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://[email protected]/not_used?password=pass"/>
</split>
{code}



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

Reply via email to