XMPP has been edited by Claus Ibsen (May 18, 2009). 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.
Headers and setting Subject or LanguageCamel sets the message IN headers as properties on the XMPP message. You can configure a HeaderFilterStategy if you need custom filtering of headers. ExamplesUser "superman" to join room krypton at jabber server with password "secret". xmpp://super...@jabber.org/?room=kryp...@conference.jabber.org&password=secret
User "superman" to send messages to joker xmpp://super...@jabber.org/jo...@jabber.org?password=secret
Routing example in Java from("timer://kickoff?period=10000"). setBody(constant("I will win!\n Your Superman.")). to("xmpp://super...@jabber.org/jo...@jabber.org?password=secret"); Consumer configuration. Will write all messages from Joker into a queue "evil.talk". from("xmpp://super...@jabber.org/jo...@jabber.org?password=secret"). to("activemq:evil.talk"); Consumer configuration listening to a room messages (supported from camel-1.5.0) from("xmpp://super...@jabber.org/?password=secret&room=kryp...@conference.jabber.org"). to("activemq:krypton.talk"); Room in short notation (no domain part; for camel-1.5.0+) from("xmpp://super...@jabber.org/?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 fromu...@gmail.com to tou...@gmail.com from("direct:start"). to("xmpp://talk.google.com:5222/tou...@gmail.com?servicename=gmail.com&user=fromuser&password=secret"). to("mock:result"); See Also |
Unsubscribe or edit your notifications preferences