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
|