I have to create a Spring web application with the framework Spring MVC 4, Hibernate and MySQL. In this context, I need to connect to multiple MYSQL databases in the same application. Is it possible? If so, can you help me find the right way. Thank you.
Edit: I'm attempting to access two databases simultaneously from the same Java class in Spring/hibernate. They are identical in terms of structure. and they both reside in the same mySql instance. I'll call them "myDatabaseA" and "myDatabaseB".
What i need is to connect to many Mysql DataBases. (e.g : The application is dedicated to several clients and each of them must have a different BD but all are mysql database:DB-CLIENT1, DB-CLIENT2,DB-CLIENT3,... )