title: What architecture to follow to connect to multiple databases
body: <p>Dear All, I'm building a core java application in which i have say 20 databases and want to connect to each of them depending upon from where request has come to access which database.</p>
  
  <p>I want to connect to databases only once from where i can pick the  connection and return; please suggest what type of architecture to follow.</p>