Relative Content

Tag Archive for javaspringspring-bootmulti-tenant

Adding data source dynamically into Abstract Routing Data Sources in Java Spring Boot application

I have a multi tenant Java application running that uses Abstract Routing Data Sources to implement multi tenancy. Each “Key”-“Value” pair represents a tenant and I am trying to add a new “key”-“Value” pair into the Abstract Routing Data Sources when a new tenant logs in. Right now the data sources are configured on startup and tenants already exist. I want to handle the case when a new tenant joins while the application is running, without restarting the application.