title: Multi-tenancy: Managing multiple datasources with Spring Data JPA
body: <p>I need to create a service that can manage multiple datasources.
  These datasources do not necessarily exist when the app when first running the app, actually an endpoint will create new databases, and I would like to be able to switch to them and create data.</p>
  
  <p>For example, let's say that I have 3 databases, A, B and C, then I start the app, I use the endpoint that creates D, then I want to use D.</p>
  
  <p>Is that possible?</p>
  
  <p>I know how to switch to other datasources if those exist, but I can't see any solutions for now that would make my request possible.
  Have you got any ideas?</p>
  
  <p>Thanks</p>