Lesson 4: Deploying the synchronization model

This lesson assumes you have completed all preceding lessons. See Lesson 1: Setting up a MobiLink consolidated database.

In this lesson, you deploy the synchronization model using the Deploy Synchronization Model Wizard to configure the consolidated database for synchronization, and create and deploy two remote databases.

 Deploy the synchronization model to two remote devices
  1. In the left pane of Sybase Central under MobiLink 12, expand mlintro_project, Synchronization Models, sync_mlintro.

  2. Click File » Deploy.

  3. Use the default settings for the Specify The Deployment Details For One Or More Of The Following option, and click Next.

  4. 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 synchronization. You can examine the .sql file later and make your own changes. Then, you must run the .sql file.

    2. Immediately apply the changes to the consolidated database.

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

    3. Select the mlintro_consdb consolidated database from the list.

    4. Click Next.

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

  5. Click New SQL Anywhere Database, and click Next.

  6. Perform the following tasks on the New SQL Anywhere Remote Database page:

    1. Select the Make A Command File And A SQL File With Commands To Create The Database option.

      Selecting this option generates another .sql file with the commands to set up the remote database with all the schema and synchronization information.

    2. Accept the default location in the SQL File field.

    3. Select the Create A Remote SQL Anywhere Database option.

    4. Accept the default location in the SQL Anywhere Database File field.

    5. Click Next.

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

  7. Click Finish.

    A message appears asking if you want to create the mlsrv directory. Click Yes.

  8. Click Close on the Deploying window.

    Your consolidated database is fully configured for synchronization with many remote clients. Your remote database is created and deployed.

  9. In the left pane of Sybase Central under MobiLink 12, expand mlintro_project, Synchronization Models, sync_mlintro.

  10. Click File » Deploy.

  11. Click Specify The Deployment Details For One Or More Of The Following and ensure that only the Remote Database And Synchronization Client and Initialize With Settings For Central Administration Of Remote Databases options are selected. Click Next.

  12. Click New SQL Anywhere Database, and click Next.

  13. Perform the following tasks on the New SQL Anywhere Remote Database page:

    1. Select the Make A Command File And A SQL File With Commands To Create The Database option.

      Selecting this option generates another .sql file with the commands to set up the remote database with all schema and synchronization information.

    2. Change the file location in the SQL File field to C:\MLintro\mlintro_project\sync_mlintro\remote\sync_mlintro_remote2.sql.

    3. Select the Create A Remote SQL Anywhere Database option.

    4. Change the file location in the SQL Anywhere Database File field to C:\MLintro\mlintro_project\sync_mlintro\remote\sync_mlintro_remote2.db.

    5. Click Next.

  14. Click Finish on the MobiLink User and Synchronization Profile page.

  15. Click Close on the Deploying window.

    You have successfully created and deployed your second remote database.

  16. Proceed to Lesson 5: Starting the MobiLink server.

 See also