XMPP has been edited by Vadim Chekan (Jul 23, 2008).

(View changes)

Content:

XMPP Component

The xmpp: component implements an XMPP (Jabber) transport.

URI format

xmpp://[EMAIL PROTECTED]:port][/participant][?Options]

The component supports both room based and private person-person conversations.

Options

Name Description
room If room is specified then component will connect to MUC (Multi User Chat). Usually domain name for MUC is different from login domain. For example if you are [EMAIL PROTECTED] and want to join "krypton" room then room url is [EMAIL PROTECTED] Note "conference" part.
user User name (without server name). If not specified then anonymous login attempt will be performed.
password Password
resource XMPP resource. The default is "Camel"
createAccount If "true" then an attempt to create an account will be made. Default is false
participant JID (Jabber ID) of person to receive messages. "room" parameter has precedence over "participant".
nickname Use nick when joining room. If room is specified and nickname is not then "user" will be used for nick

Examples

User "superman" to join room crypton 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]");

See Also

Reply via email to