Before you can run the BlackBerry application and synchronize, the MobiLink server must be running. The MDS Simulator must also be running to provide a communications channel between the device simulator and MobiLink.
Start MobiLink by running the following command from c:\tutorial\database\:
mlsrv12 -c " DSN=HelloBlackBerry" -v+ -x http(port=8081) -ot ml.txt
The -c option connects MobiLink to the SQL Anywhere database. The -v+ option sets a high level of verbosity so that you can follow what is happening in the server messages window. The -x option indicates the port number being used for the communications. The -ot option specifies that a log file (ml.txt) is to be created in the directory where you started the MobiLink server.
Choose Start » Programs » Research In Motion » BlackBerry Email And MDS Services Simulator 4.1.2 » MDS.
Enter names at the server.
Start Interactive SQL and connect to the HelloBlackBerry data source.
Run the following SQL statements add names:
INSERT Names ( Name ) VALUES ( 'ServerName1' ); INSERT Names ( Name ) VALUES ( 'ServerName2' ); COMMIT;
From the JDE, press F5 to compile your application and run it in the device simulator.
Navigate to the main screen and add names to the list.
Synchronize the application.
From the main screen, display the menu items and choose Sync.
The names entered at the server appear in the screen. If you query the names in the Names table from Interactive SQL, you should see that any names you have entered in the simulator have reached the server.
Discuss this page in DocCommentXchange.
|Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0|