Synchronization Profile

Before synchronizing with Unwired Server, you must configure a client with 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.

The generated package database class initially has default settings for the synchronization connection profile. You can modify these setttings if you require different settings than the generated code, or set certificate settings.

ConnectionProfile profile = <PkgName>DB.getSynchronizationProfile();
profile.setDomainName( "default" );
profile.setServerName( "sup.sybase.com" );
profile.setPortNumber( 2480 );
profile.setNetworkProtocol( "http" );
profile.getStreamParams().setTrusted_Certificates( "rsa_public_cert.crt" );
Related tasks
Synchronization Profile