Synchronization Profile

The Synchronization Profile contains information for establishing a connection with the Unwired Server's data synchronization channel where the server package has been deployed. The com.sybase.persistence.ConnectionProfile class manages that information. 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.

SynchronizationProfile sp = SUP101DB.getSynchronizationProfile();
sp.setDomainName( "default" );
sp.setServerName( "sup.sybase.com" );
sp.setPortNumber( 2480 );
sp.setNetworkProtocol( "http" );
sp.getStreamParams().setTrusted_Certificates( "rsa_public_cert.crt" );

When a Blackberry application connects to the Unwired Server through the BlackBerry BES TLS Proxy server, you must include an additional parameter, ";EndToEndRequired", as part of the url_suffix in the network stream of the synchronization profile.

DatabaseClass.getSynchronizationProfile().setNetworkStreamParams("trusted_certificates=;url_suffix=\\;EndToEndRequired");
Related tasks
Setting Up the Synchronization Profile