Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

We support the Jabber network via the XMPP protocol using the Smack client for Java.

Sending messages from JBI to Jabber

Both individual based and group chat mechanisms are supported. Here's an example regular chat sender component.

Wiki Markup
{snippet:id=send|lang=xml|url=servicemix/smx3/trunk/common/servicemix-components/src/test/resources/org/apache/servicemix/components/jabber/example.xml}

 

Notice how you specify a participant for the person to talk to.

For group chats you specify a room

Wiki Markup
{snippet:id=send|lang=xml|url=servicemix/smx3/trunk/common/servicemix-components/src/test/resources/org/apache/servicemix/components/jabber/group-example.xml}

 

Receiving messages from Jabber and sending them into JBI to be routed by the NMR

Wiki Markup
{snippet:id=receive|lang=xml|url=servicemix/smx3/trunk/common/servicemix-components/src/test/resources/org/apache/servicemix/components/jabber/example.xml}