I use hibernate.properties file to connect to the database. Everything works fine. I have two projects, and each project, talks to different database and each has it own hibernate.properties file.
The two projects work fine individually. But, my project 2 should reference project1. This is where I am having problem. Project 1 connects to database1 and works fine. But when I run my Project2, instead of connecting to database2 (as defined in its hibernate.properties file), it connects to database1. Project2 is also reading the hibernate.properties from project1. How, can I make project2 to read from its hibernate. properties file, or rather, how can I stop project2 from getting the hibernate. properties from project1.
Thanks.
|