posted 14 years ago
Your application will end up having to SessionFactory objects, one for each database your are connecting to. When you create a SessionFactory, it will look for hibernate.cfg.xml by default, but you can tell it to look for a specific config file, such as hibernate_01.cfg.xml and hibernate_02.cfg.xml.
Be careful, though. You're object model will not be able to use Hibernate to map associated classes across databases. To do that, you would need to use something like Hibernate Shards, which hasn't quite gone ga yet.
-Cameron McKenzie