In an environment where load balancing is configured for multiple Strategy Mobile servers, the mobile configuration needs to be configured using the following steps.
1. On the Strategy Mobile Server, navigate to the folder:
/WEB-INF/xml/mobile
2. Open the 'MobileConfigurationIndex.xml' file and make sure it is not pointing to any other Mobile configuration. Without any configuration the 'MobileConfigurationIndex.xml' will look as follows:
<cnfndx v="0" bld="9.0.628.176J"><cnfs/></cnfndx>
3. Open the Strategy Mobile Administration page and create an iPad/iPhone configuration.
4. Open the 'Connectivity Settings' tab.
5. In the Mobile Server name parameter, provide the name of one of the Strategy Mobile Servers, not of the Load Balancer, to prevent a request timeout error.
6. Fill in all other required fields.
7. Save and close the Mobile Configuration.
8. Based on the mobile configuration a new xml file will be created. This file can be found in the same folder location:
/WEB-INF/xml/mobile
and has the following nomenclature:
mobileConfig-xxx-xxx-xxx-xxx.xml
9. Edit this 'mobileConfig-xxx-xxx-xxx-xxx.xml' file.
10. Find the parameter with the Strategy Mobile server name and replace the server name with the Load Balancer's IP or server name and save the changes. E.g.
From: <ws
nm="MobileServerName" po="80" pt="StrategyMobile" ty="1" rt="0" udc="true">
To: <ws
nm="LoadBalancerName" po="80" pt="StrategyMobile" ty="1" rt="0" udc="true">
Note: If port changes have to be made to reach the load balancer, also include those changes here.
11. In the 'MobileConfigurationIndex.xml', the new configuration is also listed.
<cnfndx v="0" bld="9.0.628.176J"><cnfs/></cnfndx>
<cnf n="New Configuration" cid="ceb44e2d-fc85-4b73-b06b-e91e3cdb8ada" dt="1"><lnk am="1" rt="0"/></cnf>
12. Take the new generated 'mobileConfig-xxx-xxx-xxx-xxx.xml' file and the 'MobileConfigurationIndex.xml' and copy+paste them on each Strategy Mobile Server that will be part of the cluster.
If configuring the Strategy Mobile setup directly on the iPad/iPhone device, the load balancer's IP address or name has to be provided as the Mobile Server name.