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.
Edit SUP101DB by modifying the values of the Relay Server properties for your Relay Server environment.
getSynchronizationProfile().setServerName("examplexp-vm1"); getSynchronizationProfile().setPortNumber(80); getSynchronizationProfile().setNetworkProtocol("http"); NetworkStreamParams streamParams = getSynchronizationProfile().getStreamParams(); streamParams.setUrl_Suffix("/cli/iarelayserver/<FarmName>"); getSynchronizationProfile().setDomainName("default");
To update properties for a Relay Server installed on Internet Information Services (IIS) on Microsoft Windows:
getSynchronizationProfile().setServerName("examplexp-vm1"); getSynchronizationProfile().setPortNumber(80); getSynchronizationProfile().setNetworkProtocol("http"); NetworkStreamParams streamParams = getSynchronizationProfile().getStreamParams(); streamParams.setUrl_Suffix("/ias_relay_server/client/rs_client.dll/<FarmName>"); getSynchronizationProfile().setDomainName("default");
For more information on relay server configuration, see System Administration and Sybase Control Center for Sybase Unwired Platform.