THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
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} |