Hi All, Need your help. My application connects to two databases. I am using hibernate for this. I have connected successfully to one database in hibernate.cfg.xml file. I have tried querying the tables and all is working fine. But I dont know how to configure for another database....How do I configure the other database in this xml itself? Or A separate config file is required? What should be the name of that file?
You need to use two Configurations and two SessionFactories. (Which would mean you'd have to load the configuration manually, rather than using the default hibernate.cfg.xml route) [ June 18, 2004: Message edited by: Paul Sturrock ]