New Posts New Posts RSS Feed: Dynamic Database Selection
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Dynamic Database Selection

 Post Reply Post Reply
Author
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Topic: Dynamic Database Selection
    Posted: 10-Nov-2009 at 12:21pm

Have you looked at the Custom DataSourceKeyResolver?

Please go to the Learning Resources and find the documentation on “Custom DataSourceKeyResolver”.  It can be found from the “Business Object Persistence” page, under the “DataSourceKeys” sub-topic.
Back to Top
*Calsy View Drop Down
Groupie
Groupie


Joined: 02-Feb-2009
Location: Australia
Posts: 69
Post Options Post Options   Quote *Calsy Quote  Post ReplyReply Direct Link To This Post Posted: 08-Nov-2009 at 5:26pm
Hi All, Just wondering if there is a way we can set what database a user connects to at runtime?
 
The situation is we will have many customers each having one database. But I only want to have one website for all customers. Therefore when a user opens the website maybe supplying a parameter than we connect to their customer database.
 
Therefore when we have a new customer come on we just need to set a new database for them and not a new website aswell.
 
Any help would be appreciated.
 
Thanks
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down