This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate

 
Dagadu Akambe
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, all
I am new to Hibernate and I am using Struts and Hibernate..
My Problem is such that .. I want to switch databases dynamically.
In Short.. suppose there are two customers A and B when a logins I want to load "AAA" database and when B login i want to load his own database like.."BBB". please help me if any one know.....

Thanks in Advance.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there and welcome to javaranch,

Firstly just as an admin matter, you'll need to change your screen name as it is Javaranch policy to show real first and last names.

I'd first like to ask why each user needs their own database? If you had 500 users for example I think you can see my concern.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic