-->
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: database selection by domain
PostPosted: Thu Dec 03, 2009 6:38 am 
Newbie

Joined: Mon Sep 21, 2009 11:57 am
Posts: 2
Hi people,

for my webapp I was wondering if there is a way I can configure hibernate so that when i receive a request on a different subdomain, a different database will be used

example:
for requests on dom1.mysite.com -> use db 'central'
for requests on dom2.mysite.com -> use db 'central2'

i guess i could run 2 separate servers, with 2 separate configurations and 2 separate databases, but that would for other reasons be undesirable, as well as it would be a rather clumsy solution in my eyes

thanks for any responses,

Cheers,
Klaas


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.