Lesson 2: Creating a MobiLink project

This lesson assumes you have completed all preceding lessons. See Lesson 1: Compiling the CustdbScripts Java class with MobiLink references.

In this lesson, you connect to the consolidated database by creating a new MobiLink project.

 Create a new MobiLink project
  1. Click Start » Programs » SQL Anywhere 12 » Administration Tools » Sybase Central.

  2. Click Tools » MobiLink 12 » New Project.

  3. In the Name field, type mljava_project.

  4. In the Location field, type C:\mljava, and click Next.

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

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

  7. Click Edit.

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

    1. In the ODBC Data Source name field, click Browse, and select SQL Anywhere 12 CustDB.

    2. Click OK, and click Save.

    3. Click Finish.

  9. Click OK.

  10. Proceed to Lesson 3: Subscribing a script to the upload_insert event.