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.

{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

{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

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

 

  • No labels