-->
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 Configuration objects sharing same DB connections
PostPosted: Mon Jul 12, 2004 5:17 am 
Newbie

Joined: Fri Feb 20, 2004 6:26 am
Posts: 12
We are developing a set of applications in Eclipse that share the same database connection. However, each application sees its own set of Hibernate mapping files. Say, a calendar application might see its own mappings plus the ones from an address book application. Yet another app might also see the address book mappings. You get the idea.

My question is: is it possible to configure Hibernate in such a way that we can
init different Configuration objects for each application while sharing a "global" Hibernate connection pool? Or would each instance of Configuration come with its own connection pool?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 12, 2004 12:46 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
It is possible and very appropriate to use a J2EE coneection pool, thus it can be easily shareable.
If the conenction pool is configured by Hibernate (is hibernate.proeprties) then , there is no way to share it. You can implement you own Connection pool provider allowing that however.

_________________
Emmanuel


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.