title: Spring Multi-Tenancy - Adding new tenant without restart (using AbstractRoutingDataSource)
body: <p>I'm implementing a multi-tenant system using Spring where each tenant has its own database. I have everything up and running.</p>
  
  <p>I've extended "AbstractRoutingDataSource" and overridden "determineCurrentLookupKey" to determine which connection to use via the users domain/tenancy.</p>
  
  <p>The "AbstractRoutingDataSource" is instantiated when the app loads and all the possible database connections are set there.</p>
  
  <p>Here's my question -</p>
  
  <p>Is there a way of dynamically adding additional connections to the AbstractRoutingDataSource? I want to be able to add additional tenants without restarting.</p>
  
  <p>Any help would be greatly appreciated</p>
  
  <p>Thanks</p>