I am new to spring and have the following problem.
In my application I have multiple identical database for a single deployed application to allowed several clients to use the same application or a single client to have multiple environments. The database conection to use depends on information stored about each login. I also need to be able ot create new connections without blocking the server for other clients.
I had thought of creating a XmlWebApplicationContext, if not already created, for each connection as users logged in but looking at the api it only seems possible to have one per DispatcherServlet.
does anyone has a solution which doesn't involve have a deploy per database connection or having multiple DispatcherServlet definitions in web.xml