Connect to SAP Mobile Server through a Reverse Proxy using Relay Server or the Apache Web server.
// Register:
Application.getInstance().getConnectionProperties().setUrlSuffix
("/ias_relay_server/client/rs_client.dll/$messaging-farmId$")
// (e.g. /ias_relay_server/client/rs_client.dll/mega-vm008.msg)
//Synchronize:
TestDB.getSynchronizationProfile().getStreamParams().setUrl_Suffix
("/ias_relay_server/client/rs_client.dll/$replication-farmId$")
// (e.g. /ias_relay_server/client/rs_client.dll/mega-vm008.rep)
Add to the httpd.conf file:
content: Listen 80 <VirtualHost *:80>
ServerName proxy-server
<Location /app1/>
ProxyPass http://sup-server:5001/ ProxyPassReverse
http://sup-server:5001/
</Location>
<Location /app2/>
ProxyPass http://sup-server:2480/
ProxyPassReverse http://sup-server:2480/
</Location>
</VirtualHost>
// Register:
Application.getInstance().getConnectionProperties().setUrlSuffix("/app1");
//Synchronize:
TestDB.getSynchronizationProfile().getStreamParams().setUrl_Suffix("/app2");