|
XMPP has been edited by Vadim Chekan (Aug 06, 2008). Content:XMPP ComponentThe xmpp: component implements an XMPP (Jabber) transport. URI formatxmpp://[EMAIL PROTECTED]:port][/participant][?Options]
The component supports both room based and private person-person conversations.
ExamplesUser "superman" to join room krypton at jabber server with password "secret". xmpp://[EMAIL PROTECTED]/[EMAIL PROTECTED]&password=secret
User "superman" to send messages to joker xmpp://[EMAIL PROTECTED]/[EMAIL PROTECTED]
Routing example in Java from("timer://kickoff?period=10000"). setBody(constant("I will win!\n Your Superman.")). to("xmpp://[EMAIL PROTECTED]/[EMAIL PROTECTED]"); Consumer configuration. Will write all messages from Joker into a queue "evil.talk". from("xmpp://[EMAIL PROTECTED]/[EMAIL PROTECTED]"). to("activemq:evil.talk"); Consumer configuration listening to a room messages (supported from camel-1.5.0) from("xmpp://[EMAIL PROTECTED]/?password=secret&[EMAIL PROTECTED]"). to("activemq:krypton.talk"); Room in short notation (no domain part; for camel-1.5.0+) from("xmpp://[EMAIL PROTECTED]/?password=secret&room=krypton"). to("activemq:krypton.talk"); See Also |
Unsubscribe or edit your notifications preferences
