JBoss.orgCommunity Documentation

Chapter 3. Design Overview

The Google Talk Bot Example is a simple JAIN SLEE 1.1 Application, which creates an XMPP client connection to Google Talk Service when the application is activated by the SLEE Container. The application then handles XMPP PRESENCE and MESSAGE stanzas.

Google Talk Bot Example Handling of PRESENCE XMPP stanzas.

The image above depicts the handling of XMPP PRESENCE stanzas, which are used in XMPP to signal presence state changing. The application sends a message containing body Hi, I'm online too! to the users which sent a stanza with available type, () XMPP users which Google Talk Bot Example is a simple JAIN SLEE 1.1 Application, which creates an XMPP client connection to Google Talk Service when the application is activated by the SLEE Container. The application then handles XMPP presence and message stanzas.

Google Talk Bot Example Handling of MESSAGE XMPP stanzas.

The image above depicts the handling of XMPP MESSAGE stanzas, which are used in XMPP to exchange instant messages among users. The application sends a message with body containing the system time, if the received message body starts with time, otherwise it will send back the number of chars in the body of the message received.

The connection to Google Talk Service is closed when the Google Talk Bot Example JAIN SLEE Service is deactivated.