-->
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.  [ 3 posts ] 
Author Message
 Post subject: Pool of Pools
PostPosted: Fri Jun 11, 2004 3:48 am 
Beginner
Beginner

Joined: Fri Jun 11, 2004 3:42 am
Posts: 22
Hi,

I was wondering on how we could implement a pool of pools with hibernate.

By pool of pools I meant that we could have connection pools such as dbcp
pointing to various databases. During runtime, the application dynamically
chooses which database to use and picks up a connection from that
databases pool.

Any ideas?

Regards
Gyanesh


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 11, 2004 12:06 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Write your own ConnectionProvider :-)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 11, 2005 8:51 am 
Beginner
Beginner

Joined: Fri Jun 11, 2004 3:42 am
Posts: 22
I am trying pool of pools again after a long time.

Connection Provider, it seems, indicates a Connection for a given Session obtained from a SessionFactory.

In a Pool of Pools scenario we attach a name for each pool (eg: PoolsForOracleDB, PoolsForFirebirdDB etc). I am not too sure how to bring in Pool of Pools using Connection Provider but for the same obtained Session!

Also, how to extend transaction for different connections from different Pools (PoolsForOracleDB, PoolsForFirebirdDB etc) in the same Session object? This way we can tx.commit() / s.flush() etc will ensure that connections to various databases is done in one shot in the same session.

Kindly help me with adivce and preferable a skeeton code if possible.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.