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 - C and C++ Programming » Application development » UltraLite C++ application development » How to build and deploy UltraLite C++ applications

 

Deploying an UltraLite application for Linux

Specify appropriate creation parameters, connection parameters, synchronization parameters, protocol options, method calls, and deployment files to ensure that your UltraLite application runs successfully on Linux.

Prérequis

There are no prerequisites for this task.

 Task
  1. Specify the following parameters:

    • When using obfuscation, set the creation parameter obfuscate=1 while creating the database.

    • When using AES encryption, set the connection parameter DBKEY=encryption-key while creating or connecting to the database.

  2. Set the appropriate parameter settings when using synchronization in your UltraLite application:

    Synchronization type Parameter settings
    TCP/IP

    Set the Stream synchronization parameter to tcpip.

    HTTP

    Set the Stream synchronization parameter to http.

    RSA TLS

    Set the Stream synchronization parameter to tls.

    RSA HTTPS

    Set the Stream synchronization parameter to https.

  3. When using RSA or RSA FIPS 140-2 end-to-end encryption, set the protocol option e2ee_public_key=key-file.

  4. When using ZLIB compression, set the protocol option compression=zlib.

  5. Link against the following files:

    • libulrt.a.

    • libulbase.a.

    • When using RSA TLS, RSA HTTPS, or RSA E2EE, libulrsa.a.

    These files are located in /opt/sqlanywhere16/ultralite/linux/x86/586/lib.

  6. When using AES encryption, call the ULDatabaseManager.EnableAesDBEncryption method.

  7. Ensure that the following methods are called for the synchronization type used in your UltraLite application:

    Synchronization type Parameter settings
    TCP/IP

    Call the EnableTcpipSynchronization method.

    HTTP

    Call the EnableHttpSynchronization method.

    RSA TLS

    Call the EnableTlsSynchronization and EnableRsaSyncEncryption methods.

    RSA HTTPS

    Call the EnableHttpsSynchronization and EnableRsaSyncEncryption methods.

Résultat

The UltraLite application runs successfully on the Linux computer that it is deployed to.

Suivant

Deploy an UltraLite database to the Linux computer that the application was deployed to, or create a new database with the deployed application.

 See also