The DataSource in Basic SQL Connector uses the default database defined in server.properties.
One use case we are looking at is to be able to switch to any number of Database instances, each instance representing a different environment, with the same table definitions but different data.
For simple prototype / demo, we can use the DB Admin console to switch the default database instance. However, this obviously is not desirable, as it forces all instances of SmartGWT clients to use whatever the default happens to be selected by one of the end users. The desirable behavior is to allow each client instance to use its own database instances.
Updating the dbName attribute, after the dataSource has already been loaded using DataSource.get(<name>) has no effect - the default database is still been used. Is there anyway to specify the DataSource to point to a different database - other than the default one?
SmartGWT Version: 3.0
One use case we are looking at is to be able to switch to any number of Database instances, each instance representing a different environment, with the same table definitions but different data.
For simple prototype / demo, we can use the DB Admin console to switch the default database instance. However, this obviously is not desirable, as it forces all instances of SmartGWT clients to use whatever the default happens to be selected by one of the end users. The desirable behavior is to allow each client instance to use its own database instances.
Updating the dbName attribute, after the dataSource has already been loaded using DataSource.get(<name>) has no effect - the default database is still been used. Is there anyway to specify the DataSource to point to a different database - other than the default one?
SmartGWT Version: 3.0
Comment