QAnywhere uses MobiLink synchronization to send and receive messages. All messages from one client to another are delivered through a central MobiLink server. The architecture of a typical system, with only two QAnywhere clients, is shown in the following diagram.
The server message store is a database configured for use as a MobiLink consolidated database. The TestMessage sample uses a SQL Anywhere consolidated database as its server message store.
The only tables needed in the server message store are the MobiLink system tables that are included in any supported database that is set up as a MobiLink consolidated database.
The system tables are maintained by MobiLink. A relational database provides a secure, high performance message store. It enables you to easily integrate messaging into an existing data management and synchronization system.
QAnywhere messaging is usually run over separate computers, but in this tutorial all components are running on a single computer. It is important to keep track of which activities are client activities and which are server activities.
In this lesson, you perform actions at the server.
The MobiLink server can be started with messaging by supplying the -m option, and specifying a connection string to the server message store. The TestMessage sample uses a QAnywhere sample database for the server message store. For the TestMessage sample, you can start the MobiLink server for messaging using the command line options, using a sample shortcut in your SQL Anywhere installation, or with the QAnywhere 12 plug-in to Sybase Central.
Click Start » Programs » SQL Anywhere 12 » QAnywhere » MobiLink QAnywhere Sample.
Alternatively, at a command prompt, run the following command:
mlsrv12 -m -c "dsn=QAnywhere 12 Demo" -vcrs -zu+
This command line uses the following mlsrv12 options:
The -m option enables messaging. See -m mlsrv12 option.
The -c option specifies the connection string to the server message store, in this case using the QAnywhere 12 Demo ODBC data source. See -c mlsrv12 option.
The -vcrs option provides verbose logging of server activities, which is useful during development. See -v mlsrv12 option.
The -zu+ option automatically adds user names to the system; this is convenient for tutorial or development purposes but is not normally used in a production environment. See -zu mlsrv12 option.
Move the MobiLink server messages window to the center of your screen, which represents the server in this tutorial.
Proceed to Lesson 2: Running the TestMessage application.
Discuss this page in DocCommentXchange.
|Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1|