Native UltraLite for Java User's Guide
Tutorial: The CustDB Sample Application
The following procedure shows you how to run the CustDB sample on Windows. Deployment to a Windows CE device is described in a later lesson. This lesson uses MobiLink synchronization, and so requires that you have SQL Anywhere installed.
To run the sample on Windows
From the same command prompt as in the previous lesson, type win32\run.bat
.
This command carries out the following operations:
Starts the MobiLink synchronization server.
The server connects to the UltraLite 9.0 Sample database, which is used in this stage as a consolidated database for the CustDB applcation.
Starts the CustDB sample.
The first time you run it, the application starts with no UltraLite database (.udb file) and so it creates this file from the UltraLite schema.
Displays a logon window.
The window appears in the middle of the screen, but may be behind other windows. You may have to move other windows to locate the logon window.
Logon to the application.
Click OK to logon as a user with MobiLink user ID 50. The application synchronizes and synchronization progress information is displayed. After a pause, a window with a single order is displayed.
Explore the application.
You can move through the rows in the database, aprove and deny orders, and synchronize. When you quit the application, the batch file shuts down the MobiLink synchronization server.