This is a Proof of concept to connect to multiple databases using JPA/eclipselink. We are using composite persistence unit to configure multiple persistence units, which will be used to connect to multiple databases.
Once you have checked out the project, do the following to run it.
- Run CreateDB.sql in your local database to create the required schemas and default data.
- Update modThree/src/main/resources/dbConf.properties with your database credentials.
- Now build the entire project with
mvn clean install
command. (Note: you need maven, jdk to build this project) - Now take the modThree/target/modThree-1.0.0.war file and deploy it in a tomcat