Contents Index HotSync architecture Adding HotSync synchronization to your application pdf/preface.pdf

UltraLite User's Guide
  Developing Applications for the Palm Computing Platform

Adding HotSync synchronization to Palm applications


This section describes what you need to include in your UltraLite application code to synchronize using HotSync. From the UltraLite application side, the procedure is very similar for these two synchronization streams.

See also 

For an overview of HotSync, see Understanding HotSync synchronization.

For information about configuring HotSync, see Configuring HotSync synchronization.

Synchronization functions 

If you use HotSync, then you synchronize by calling ULPalmLaunch (embedded SQL) or ULData.PalmLaunch ( C++ API ) when your application is launched, and ULPalmExit (embedded SQL) or ULData.PalmExit (C++ API ) when your application is closed. You must supply a ul_synch_info structure holding the synchronization parameters to ULPalmExit or ULData.PalmExit. The stream parameter for the ul_synch_info structure is ignored, and can be UL_NULL.

Do not use ULSynchronize or ULConnection.Synchronize for HotSync synchronization.

For more information, see Launching and closing UltraLite applications, and Synchronization parameters.

If there are uncommitted transactions when you close your Palm application, and if you synchronize, the conduit reports that synchronization fails because of uncommitted changes in the database.

Specifying the stream parameters 

The synchronization stream parameters in the ul_synch_info structure control communication with the MobiLink synchronization server. For HotSync synchronization, the UltraLite application does not communicate directly with a MobiLink synchronization server; it is the HotSync conduit instead.

You can supply synchronization stream parameters to govern the behavior of the MobiLink conduit in one of the following ways:


Adding HotSync synchronization to your application

Contents Index HotSync architecture Adding HotSync synchronization to your application pdf/preface.pdf