Setting Up the Synchronization Profile

You can set Unwired Server synchronization channel information by calling the synchronization profile's setter method. By default, this information includes the server host, port, domain name, certificate and public key that are pushed by the message channel during the registration process.

Settings are automatically provisioned from the Unwired Server. The values of the settings are inherited from the application connection template used for the registration of the application connection (automatic or manual). You must make use of the connection and security settings that are automatically used by the Object API.

Typically, the application uses the settings as sent from Unwired Server to connect to Unwired Server for synchronization so that the administrator can set those for the application at deployment time based on deployment topology, except for e2ee security and certificate, which is described in Encryption and Trusted Certificates for Data Synchronization. Also refer to Applications and Application Connection Templates topics in System Administration.

Set up a secured connection using the ConnectionProfile object.

  1. Retrieve the synchronization profile object using the Sybase Unwired Platform database's getSynchronizationionProfile method.
    SUPConnectionProfile* cp = [SUP101SUP101DB getSynchronizationProfile];
  2. Set the connection fields in the ConnectionProfile object.
    SUPConnectionProfile* cp = [SUP101SUP101DB getSynchronizationProfile];
    [cp setServerName:@"xxxx"];
    [cp setPortNumber:2480]; 
    
Related reference
Synchronization Profile