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

SAP Sybase SQL Anywhere 16.0 » UltraLite - Java Programming » UltraLiteJ application development » How to build and deploy UltraLiteJ applications

 

Deploying an UltraLiteJ application for BlackBerry

Use method calls to specify appropriate creation parameters, connection parameters, synchronization parameters, and protocol options, and deploy the appropriate files to ensure that your UltraLiteJ application runs successfully on BlackBerry smartphones.

Prerequisites

There are no prerequisites for this task.

 Task
  1. Call the following methods during database creation and connection:

    • When using obfuscation, ConfigPersistent.enableObfuscation.

    • When using AES encryption, ConfigPersistent.EnableAesDBEncryption and ConfigPersistent.setEncryptionKey.

  2. When using synchronization, specify the synchronization stream by passing the SyncParms.HTTP_STREAM or SyncParms.HTTPS_STREAM constant to the Connection.createSyncParms method, and then use the StreamHTTPParms or StreamHTTPSParms interface.

  3. Set stream compression and encryption options through the interface you selected in the previous step:

    • For ZLIB compression, call the setZlibCompression method.

    • For RSA E2EE encryption, call the setE2eePublicKey method.

  4. Deploy the following files, located in the %SQLANY16%\UltraLite\UltraLiteJ\BlackBerry4.2 directory:

    • UltraLiteJ16.cod

    • UltraLiteJ16.jad

    UltraLiteJ16.jad is required for over-the-air (OTA) deployment only. Alternatively, you can create your own .jad file that deploys UltraLiteJ with your application.

  5. When using RSA E2EE encryption, transfer the DER encoded file using the FileTransfer interface, or store the file on an SD card.

Results

The UltraLiteJ application runs successfully on the BlackBerry smartphone that it is deployed to.

Next

Deploy an UltraLite Java edition database to the BlackBerry smartphone that the application was deployed to, or create a new database with the deployed application.

 See also