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 the Unwired Server to connect to the Unwired Server for synchronization so that the administrator can set those at the application deployment time based on their deployment topology (for example, using relay server, using e2ee security, or a certificate used for the intermediary, such as a Relay Server Web server). See the Applications and Application Connection Templates topics in System Administration.

When the client registers and starts the application, the certificate is downloaded to the client, so that the client can be assigned the trusted certificate.

Set up a secured connection using the ConnectionProfile object.

  1. Retrieve the synchronization profile object using the Sybase Unwired Platform database's getSynchronizationionProfile method.
    ConnectionProfile cp = SUP101DB.getSynchronizationProfile();
  2. Set the connection fields in the ConnectionProfile object.
    cp.setServerName("SUP_Host");
    cp.setPortNumber(2481);        	
    cp.getStreamParams().setTrusted_Certificates(appname+"_trustedCertificates.crt");
    cp.setNetworkProtocol("https");
Related reference
Synchronization Profile