To enable your client application to connect through a Relay Server, you can enter the related configuration in the application connection template through Sybase Control Center, and/or setup the configuration properties in the synchronization profile using the object API.
If a Relay Server is used, the ‘companyID’ in the SUPApplication property must correspond to the MBS farm ID that is used for the messaging client connection.
SUPConnectionProperties props = app.connectionProperties; [props setFarmId:@"relayServer1"];
For data synchronization through a Relay Server, synchronization properties need to be set if the corresponding application connection template in Sybase Control Center does not have with the required values:
SUPConnectionProfile *sp = [SUP101SUP101DB getSynchronizationProfile]; [sp setUser:@"xxxx"]; //required [sp setPassword:@"xxxx"]; //required [sp setNetworkProtocol:@"https"]; // or http, optional [sp setPortNumber:443]; // if http then corresponding port, optional [sp setNetworkStreamParams:@"trusted_certificates=certificateName;compression=zlib;url_suffix=urlsuffixProvidedByTheRelayServer"]; // optional
For more information on Relay Server configuration, see System Administration and Sybase Control Center for Sybase Unwired Platform.