jwenting wrote:
use a separate hibernate sessionfactory for each database.
Hi
Thanks for the reply.
The main problem i face in my application is, since i create the database dynamically through my application , i will not be knowing how many database i will be having in my application. So i will not be able to create sessionfactory configuration for every database before itself.
what i understood from your reply is, i should either create a new hibernate.cfg.xml file(with different name) or alter the same hibernate.cfg.xml file by appending the new sessionfactory configuration , when ever i create a new database through my application.
So in this way i will be able get connected to the database, that is created through my application, using this sessionfactory configurations.
Is this what you are trying to convey me.
with thanks
krishna