To enable your client application to connect through a relay server, you must make manual configuration changes in the object API code to provide the relay server properties.
Edit <package-name>DB by modifying the values of the relay server properties for your Relay Server environment.
To update properties for the relay server installed on Apache on Linux:
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 the relay server installed on Internet Information Services (IIS) on Microsoft Windows:
getSynchronizationProfile().setServerName("examplexp-vm1"); getSynchronizationProfile().setPortNumber(2480); 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 Unwired Server.