I need to create the application which connects to the different DB's based on the input from the user. What is the best solution to achieve this? I did search on Google but I failed to find the resources.
1 Answer
You clearly haven't put much effort into searching. There are multiple solutions, e.g., https://stackoverflow.com/a/10593773. If you were to use Spring, I'd recommend this: http://www.baeldung.com/spring-data-jpa-multiple-databases
1 Comment
Mark Rotteveel
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.