-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Multiple databases on same database instance
PostPosted: Fri Apr 01, 2005 4:29 pm 
Newbie

Joined: Fri Apr 01, 2005 4:05 pm
Posts: 1
Should be any easy one, but I couldn't find anything in the docs.

I'm using v2 Hibernate with MySQL. I have a single database installation, but multiple logical databases within it which my app needs to interact with - seperate, self-contained, "data universes". With JDBC you can switch from one database to the next dynamically using conn.setCatalog().

Using Hibernate, do I need a new SesssionFactory for each database instance? If not, how do I switch it?

Thanks in advance,

Matt


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 18, 2005 4:55 pm 
Beginner
Beginner

Joined: Thu May 26, 2005 12:31 pm
Posts: 25
you need multiple SesssionFactories.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.