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

SQL Anywhere 12.0.1 » UltraLite - Java Programming » Tutorial: Building a BlackBerry application » Part 2: Using MobiLink to synchronize the BlackBerry application


Lesson 2: Setting up a MobiLink server and deploying a synchronization model

In this lesson, you use Sybase Central to prepare your consolidated database for synchronization.

 Set up the MobiLink server and deploy a synchronization model
  1. Click Start » Programs » SQL Anywhere 12 » Administration Tools » Sybase Central.

  2. Click Tools » MobiLink 12 » New Project.

    The Create Project Wizard appears.

  3. In the Name field, type rim_project.

  4. In the Location field, type C:\HelloBlackBerry\database, and then click Next.

  5. Select the Add A Consolidated Database To The Project option.

  6. In the Database Display Name field, type HelloBlackBerry.

  7. Click Edit.

  8. Perform the following tasks on the Connect To A Generic ODBC Database page:

    1. In the User ID field, type DBA.

    2. In the Password field, type sql.

    3. In the ODBC Data Source Name field, click Browse and select HelloBlackBerry.

    4. Click OK, and then click Save.

  9. Select the Remember The Password option, and then click Next.

  10. Select Create A New Model, and then click Finish.

  11. Click OK.

    The Create Synchronization Model Wizard appears.

  12. In the What Do You Want To Name The New Synchronization Model field, type HelloBlackBerrySyncModel and then click Next.

  13. Select the HelloBlackBerry consolidated database from the list, and then click Next.

  14. Click No, Create A New Remote Database Schema, and then click Next.

  15. On the New Remote Database Schema page, ensure that only the Names table is selected from the Which Consolidated Database Tables And Columns Do You Want To Have In Your Remote Database list, and then click Next.

  16. Click Timestamp-based Download, and then click Finish.

    Timestamp-based downloads minimize the amount of data that is transferred because only data that has been updated since the last download is transmitted.

  17. In the left pane of Sybase Central under MobiLink 12, expand rim_project, Synchronization Models and then HelloBlackBerrySyncModel.

  18. Click File » Deploy.

  19. Under the Specify The Deployment Details For One Or More Of The Following option, ensure that only the Consolidated Database option is selected. Click Next.

  20. Perform the following tasks on the Consolidated Database Deployment Destination page:

    1. Select Save Changes To The Following SQL File and accept the default location for the file.

      MobiLink generates a .sql file that makes changes to the consolidated database to set up for synchronization. You can examine the .sql file later and make your own changes. Then, you must run the .sql file yourself.

    2. Immediately apply the changes to the consolidated database.

      Select Connect To The Consolidated Database To Directly Apply The Changes.

    3. Select the HelloBlackBerry consolidated database from the list.

    4. Click Next.

    A prompt appears asking if you want to create the consolidated directory. Click Yes.

  21. On the MobiLink User and Synchronization Profile page, type mluser for the user name and mlpassword for the password, and then click Finish.

    The synchronization model to the consolidated database can now be deployed.