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.
Call the following methods during database creation and connection:
When using obfuscation, ConfigPersistent.enableObfuscation.
When using AES encryption, ConfigPersistent.EnableAesDBEncryption and ConfigPersistent.setEncryptionKey.
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.
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.
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.
When using RSA E2EE encryption, transfer the DER encoded file using the FileTransfer interface, or store the file on an SD card.
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0 |