You should provide the details properly if you want to get free help ;)
Sorry, what I'm looking for is a config in the definition of the DataSource.
This config delegate the creation of the DataSource to a Class.
So that in that class you can write logic to select the DB ip or other settings.
hope a clear.