tags:

views:

453

answers:

1

Is there a way (in Grails) to change the 'primary' database while the application is running, but before any domain objects have been instantiated? I'm trying to set up an app where each customer has their own database, but don't want to have to run a separate Java interpreter for every single customer.

+1  A: 

Check out : http://www.leebutts.com/2008/07/switchable-grails-datasource.html