I have a set of restful services connecting to Oracle , MySQL and Phoenix DBs. These are running on tomcat. I have to migrate these services to pivotal cloud foundry. Is it sufficient if I externalize the connection parameters potentially using cloud config server or env variables to connect to these databases or is there anything additional that I need to do? I assume any db which works with a java application deployed outside cloud foundry will work when the app is deployed to pivotal cloud foundry. Please correct me if my assumption is incorrect.
1
votes
1 Answers
1
votes
You can certainly manage your connection parameters through Spring Cloud Config Server and connect that way.
An alternative approach would be to use User-Provided Service Instances: http://docs.pivotal.io/pivotalcf/devguide/services/user-provided.html
Some organizations might prefer this approach, because managing access to your databases may more closely align with platform operation responsibilities that code configuration responsibilities.
application.properties
file. Here is the project in which I used MongDb using hardcoded as well as CloudFoundry env variables method - blogAggr – Sanjay Rawat