Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » UltraLite - M-Business Anywhere Programming » Understanding UltraLite for M-Business Anywhere development » Synchronizing data

 

One-button synchronization

One-button synchronization is a technique for initiating web content synchronization (using M-Business Anywhere) and UltraLite data synchronization (using MobiLink) in a single operation. It is available on Windows Mobile and Windows only. The architecture of one-button synchronization is as follows:

Architecture for one-button synchronization, showing web content synchronization with M-Business Anywhere and data synchronization with MobiLink

The sequence of events in one button synchronization is as follows:

  1. The user synchronizes their web application, perhaps by placing it in the cradle.

  2. The M-Business Client synchronizes the web content.

  3. The MBConnect component of M-Business Client calls the ulconnect.exe application.

  4. ulconnect.exe initiates synchronization of the UltraLite database.

  5. Data is synchronized with MobiLink.

To implement one-button synchronization you must carry out the following steps:

  1. In your application, set the synchronization parameters for MobiLink synchronization.

    If you are synchronizing through M-Business Anywhere you can use the SyncParms.setMBAServer method to set the host and port synchronization parameters. See setMBAServer method.

    Otherwise, use the standard methods to set synchronization parameters. See SyncParms class.

  2. Save the synchronization parameters so that they can be read by ulconnect.exe.

    Call the Connection.saveSyncParms method to save the synchronization parameters. See saveSyncParms method.