I was asked to implement a logic for having separate domains for a separate user (assuming he will have his own database) means all the domains will be mapped to different database at runtime. Sounds silly i know
How can i change the datasouce(persistence configuration file) after logIn of user while datasource
are supposed to load at startup time of application.
Is it possible somehow?
NOTE: I want to change datasource of some domain to another datasource at runtime one at a time.