MobiLink Synchronization User's Guide
The Contact Sample Application
Setup
The Contact sample includes batch files that carry out initial synchronizations and illustrate MobiLink synchronization server and dbmlsync command lines. You can examine the contents of the following batch files, located in the Samples\MobiLink\Contact subdirectory of your SQL Anywhere 9 installation, in a text editor:
step1.bat
step2.bat
step3.bat
To run the Contact sample
Start the MobiLink synchronization server.
Open a command prompt and navigate to the Samples\MobiLink\Contact subdirectory of your SQL Anywhere 9 installation and execute the following command:
step1
This command runs a batch file that starts the MobiLink synchronization server in a verbose mode. This mode is useful during development or troubleshooting, but has a significant performance impact and so would not be used in a routine production environment.
Synchronize both remote databases.
Open a command prompt and navigate to the Samples\MobiLink\Contact subdirectory of your SQL Anywhere 9 installation and execute the following command:
step2
This is a batch file that synchronizes both remote databases.
Shut down the MobiLink synchronization server.
Open a command prompt and navigate to the Samples\MobiLink\Contact subdirectory of your SQL Anywhere 9 installation and execute the following command:
step3
This is a batch file that shuts down the MobiLink synchronization server.
To explore how synchronization works in the Contact sample, you can use Interactive SQL to modify the data in the remote and consolidated databases, and use the batch files to synchronize.