There are situations in which a customer can have multiple mobile servers where Strategy Mobile is deployed.
It can be required that mobile devices are able to access any of the available mobile servers, for instance when a load balancer is used to direct connections from mobile devices to servers. This would require the creation of the same mobile configuration across all the servers.
In Strategy Mobile 9.x and 10.x, there is no automated way to copy the mobile configurations across servers. The following directions allow to manually copy the configurations from one mobile server to another.
The mobile configurations are stored on XML files on the Strategy Mobile application deployment folder. The files are stored on the following location:
<Mobile Application Deployment Path>/WEB-INF/xml/mobile
You can follow two procedures to perform the mobile configuration copy from one server to another:
Using this procedure, any configurations previously created on the destination server will be lost.
In this case we need to copy only some of the configurations to the destination mobile server. We will then copy the corresponding section of the mobileConfigurationIndex.xml file and the corresponding mobileConfig-<code>.xml files.
For this example, we will have a source mobile server with a configuration called "New Configuration" that we will copy to the destination server, where there already exist two configurations, named "Configuration Local" and "10.16.155.86".
To copy the configuration named New Configuration, open the file mobileConfigurationIndex.xml, and identify the configuration on this file. Each configuration is defined between XML tags <cnf>
On the source file, the tag defining this configuration is
<cnf n="New Configuration" cid="bbc1d570-4752-4958-921c-48aee52fa376" dt="2"><lnk am="1" rt="0"/></cnf>
<cnfndx v="0" bld="9.0.628.176J"><cnfs><cnf n="New Configuration" cid="bbc1d570-4752-4958-921c-48aee52fa376" dt="2"><lnk am="1" rt="0"/></cnf><cnf n="Configuration local" cid="ac2b9a3a-268d-4805-9601-11d38f6014fd" dt="2"><lnk am="1" rt="0"/></cnf><cnf n="10.16.155.86" cid="7e0ec65b-ddcb-4f35-a783-1d638e557968" dt="2"><lnk am="3" rt="0"/></cnf></cnfs></cnfndx>
mobileConfig-bbc1d570-4752-4958-921c-48aee52fa376.xml
After performing the changes, restart the Application Server.
Then, launch Mobile Administration > Mobile Configuration and open and save each mobile configuration.
The reason for this is that it adds the new fields in the mobile configuration page to the config.xml files. It also increments the cntr parameter in the case you have used a customized mobile app with the the UseBundledPreferences/UpdatedExistingPreferences flat enabled.
Always make sure that the configuration names are unique.
KB410131