netstart wrote:
how to connect with multidatabases using hibernate 2.1?
I can't connect to multiple databases with different hosts
host1 different (!=) host2
password1 different (!=) password2
login1 different (!=) login2
please, one example the hibernate.cfg.xml to connect multdatabase.[/b]
You can't use a single hibernate.cfg.xml to connect to multiple databases.
In order to connect to different databases, you need to configure separate org.hibernate.cfg.Configuration objects, one for each database.
And the hibernate.cfg.xml only allows you to specify a single set of database properties.