Hi Konstantin,
Regarding this topic CUBA multi-tenant with database per tenant i have some questions. I attached a test project.
I created a class TenantConfigStorage in order to ovveride ConfigStorage, so the Configs created to be stored in tenant database, not in main database.
After user log in, a screen will appear, and the user must choose a database. After that i set the tenantDbAddress in session attribute.
On close of this screen i have added a closeListener, where i read a configuration stored in tenant database, and display it on main screen on a label.
The Config
@Source(type = SourceType.DATABASE)
public interface SocietateConfig extends Config {
@Property("ec.societate.init")
void setInit(String init);
@Property("ec.societate.init")
String getInit();
@Property("ec.societate.denumire")
String getDenumire();
@Property("ec.societate.denumire")
void setDenumire(String denumire);
}
When i call the setter method of config, it is saved in tenant database but when i want to read it, the value is null.
ExpertContab.zip (319.9K)