Hi,
I am new bee to Hibernate and trying out things.
One thing that seems to amuse all is how to connect to different databases?
I have two questions here
a) if in the same web app i need to connect to mysql and oracle how do i do it?
b) i am using mysql and have two databases test1 and test2, how to connect and retrieve data?
I have read in a blog that we can create different configuration files and do it.
I tried it but was not sucessfull.
Here's what i tried
SessionFactory sf = (SessionFactory) new Configuration().configure(path);
Where path is the path of the config file.
Is this the right way?
Thanks in advance.
Karthik.