|
XMPP has been edited by Jonathan Anstey (Dec 31, 2008). Content:XMPP ComponentThe xmpp: component implements an XMPP (Jabber) transport. URI formatxmpp://[lo...@]hostname[: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]?password=secret
Routing example in Java from("timer://kickoff?period=10000"). setBody(constant("I will win!\n Your Superman.")). to("xmpp://[email protected]/[email protected]?password=secret"); Consumer configuration. Will write all messages from Joker into a queue "evil.talk". from("xmpp://[email protected]/[email protected]?password=secret"). 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"); When connecting to the Google Chat service, you'll need to specify the serviceName as well as your credentials (as of Camel 1.6/2.0) // send a message from [email protected] to [email protected] from("direct:start"). to("xmpp://talk.google.com:5222/[email protected]?servicename=gmail.com&user=fromuser&password=secret"). to("mock:result"); See Also |
Unsubscribe or edit your notifications preferences
