-->
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: Converting web app to multi tenant - advice sought
PostPosted: Mon Nov 26, 2012 7:12 am 
Regular
Regular

Joined: Tue Apr 10, 2007 10:02 am
Posts: 56
Hi all,

I'm looking to upgrade an existing web app to a multi tenant SaaS solution. The existing product is based on Spring 3.0 and Hibernate 3.3, ontop of MySQL5. It uses a distinct Spring based DAO tier that is based around use of 'HibernateDaoSupport' and the use of XML configuration.

The multi tenant solution requires support for both a separate database for a tenant and separate schema in a database (multiple tenants each having their own schema in a single database).

Reviewing all the available docs there seem to be two ways forward:
* Use Hibernate 4.1 (how stable is this?) Will this work with Spring 3.0?
* Customize Hibernate 3.x for with data source routers, custom connection factories etc. There are a number of bog postings and article out there that elaborate different solutions

For various reasons I have to keep the XML configuration. Before I launch into this project I'm hoping I can tap the experience of other developers who have already been down this path.

Any suggestions?


Top
 Profile  
 
 Post subject: Re: Converting web app to multi tenant - advice sought
PostPosted: Tue Nov 27, 2012 7:26 am 
Pro
Pro

Joined: Wed Nov 05, 2003 7:22 pm
Posts: 211
Hibernate 4.1 works fine. I migrated from Hibernate 2 to 3 and then 3 to 4 alongside Spring 2.5, 3.0 and 3.1.
However, migrating your code will require some thorough changes. HibernateDaoSupport is out of the window in favour of native Hibernate support and a number of packages references changed if I recall correctly. I have no experience with XML configuration but this might be a good moment to move to annotations.

Other than that you have to be more specific.


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.