I am trying to deploy two MobileFirst servers using different projects and on different IBM bluemix containers, where both point to the same Cloudant service.
Both MobileFirst servers and projects contain the same WAR file deployed with the same project name, because I want to create a development and a staging environment for myself.
Both projects have the same war file, and the default admin and environment database are the same. I cannot have separate environments, as modifying any one of them also changes the other because the databases are the same.
I also tried the following to create separate databases for the two environments, but it didn't work.
1) In usr/config/wladmin.xml added the following jndi entries to create different named databases.
<jndiEntry jndiName="${env.MFPF_ADMIN_ROOT}/mfp.db.cloudant.adminDbName" value="new_ProjectName_db"/>
<jndiEntry jndiName="${env.MFPF_ADMIN_ROOT}/mfp.db.cloudant.dbNamePrefix" value="ProjectName_dev"/>
2) Also did the same entries on projectName.xml file
<jndiEntry jndiName="ProjectName/mfp.db.cloudant.adminDbName" value="new_ProjectName_db"/>
<jndiEntry jndiName="ProjectName/mfp.db.cloudant.dbNamePrefix" value="ProjectName_dev"/>
After deploying the containers, both the servers still use the same databases and no new databases were created using different names.
Thanks