Next you define an Agent. This Agent represents an instance of the MobiLink Agent running on a remote device. You must create a separate Agent for each remote device you are managing.
In the Folders view, under Central Admin Tutorial » Consolidated Databases » Tutorial, right-click Agents and choose New » Agent. The Create MobiLink Agent Wizard appears.
On the Welcome page, choose Set Up a Single Agent and click Next.
On the Agent ID page, type AID_JOHN for the Agent ID. The Agent ID can be any value you like but each Agent must have a unique ID. By convention, Agent IDs begin with the prefix AID_ and usually the second part of the agent ID is the MobiLink user name used by the Agent. Click Next.
The Remote Database page lets you define a remote database to be managed by this Agent. This does not actually create the database; you will do that later. For Remote Schema Name, select Tutorial Application v1.0, which is the name you defined in the previous lesson, from the dropdown list.
If you have an existing synchronization system, fill in the Connection String field with a connection string that the MobiLink Agent can use to connect to the remote database that is already on your device.
If this is a new synchronization system, enter the following in the Database Connection String field:
start=dbeng12;eng=tutorial_v1;dbf={db_location}\tutorial_v1.db;uid=dba;pwd=sql |
Notice that this value uses the macro {db_location}. This macro is replaced by the directory on the remote device where application databases are stored. Click Next.
On the Agent Configuration page, type 30 and choose Seconds for the Synchronization Interval. The synchronization interval controls how frequently the Agent synchronizes its agent database. Synchronizing the agent database is how an Agent receives new tasks to perform and uploads the results of tasks it has already performed.
On the Agent Configuration page, type 10 and choose Seconds for the Administration Polling Interval. The administration polling interval determines how frequently the Agent checks for requests from the server for it to synchronize or perform other actions.
Click Finish.
The short values chosen for the synchronization interval and administration polling interval provide a very responsive Agent, which is important for a demonstration or for troubleshooting. However, using short values globally in a production system results in increased load on your server and reduced performance.
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |