Forums Register Login

Hibernate to deal with many databases ???

+Pie Number of slices to send: Send
Hi,

Can anybody please tell me how can i configure hibernate so that it can read from many databases ???

I used a list of Configurations and set its properties at runtime, but i keep getting a :



Can anybody tell me how this problem can be solved ?

And please can anybody post a tutorial on dealing with many databases ?

Thanks in advance ...
+Pie Number of slices to send: Send
You need a SessionFactory per DataSource. It looks like you have misconfigured at least one of them. Can you post your hibernate.cfg.xml (or simmilar)?
+Pie Number of slices to send: Send
Please do not duplicate post. I had to go through and delete two threads that were identical to this one. If you ever do this, you can always delete the threads yourself, but deleting the first message in the thread.

Mark
+Pie Number of slices to send: Send
Hi,

Sorry there was a problem in the connection that was the reason for the multiple posts.

Anyway, Do you mean having multiple <session-factory> tags in my hibernate.cfg.xml file ?

Thanks ...
The overall mission is to change the world. When you've done that, then you can read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 985 times.
Similar Threads
Regarding Jar File.
Cursor and Hibernate
Using Apache DBCP
Can anybody tell about common error problems and how to solve it Hibernate
Database Cursor and Hibernate
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 02:26:21.