-->
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.  [ 1 post ] 
Author Message
 Post subject: distributed multi-tenant hibernate possible?
PostPosted: Fri Nov 30, 2012 3:41 pm 
Newbie

Joined: Fri Nov 30, 2012 3:27 pm
Posts: 1
Hi,

I'm researching the possibility of integrating hibernate into an existing DB-backed client/server application. This application will be rearchitected as a multi-tenant distributed application in the future. By this I mean, we will have a lot of different DBs, one per customer (this is a strict requirement and there is no way to consolidate all customers' data into one database). The server component will consist of many identical instances serving incoming client requests independently and each instance will serve requests for any client; therefore each instance of the server will need to be able to communicate with every database.

I am just learning about Hibernate now, and am wondering whether this architecture is compatible with Hibernate? As is my understanding, there is exactly one SessionFactory object per database. So will every server instance maintain a collection of SessionFactory objects - one per database? Or will I have to share and pass around SessionFactories? Are there other considerations/problems?

Thanks

EDIT - Sorry, i clearly did not do enough research before posting - in particular the hibernate dev guide even has a section on mutli-tenancy...


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

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.