connection « cfg « JPA Q&A





2. Multiple Database Connections in hibernate.cfg.xml    forum.hibernate.org

I'm using Hibernate 3.0 with MySql 4.1. I have created one session-factory in the hibernate.cfg.xml to connect to my database and my code is working. How does my code need to change if I add another session-factory/database connection? I currently am using a class called HibernateUtil (as per the examples) to access the Session, the code is below. So, how do ...

3. Plugging in a connection.     forum.hibernate.org

I am a user of Hibernate for quite some time. Everything is goign smoothly untill our DBA came in rised the question of having password naked in hibernate.cfg.xml. Couple of questions. 1. Is there a way to inject a JdbCConnection from an outside api into Hibernate runtime. (Say we need to have all the connection to be datasourced from a Apache ...