title: Creating a datasource from fetching the data source
body: <p>Currently,I am storing database details in a property file and then creating an datasource using</p>
  
  <pre><code>&lt;bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"&gt;
      &lt;property name="driverClassName"&gt;
          &lt;value&gt;${driverClassName}&lt;/value&gt;
      &lt;/property&gt;
      &lt;property name="url"&gt;
          &lt;value&gt;${url}&lt;/value&gt;
      &lt;/property&gt;
      &lt;property name="username"&gt;
          &lt;value&gt;${username}&lt;/value&gt;
      &lt;/property&gt;
      &lt;property name="password"&gt;
          &lt;value&gt;${password}&lt;/value&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>My Client asked us to place a config database and this DB will store all the i18keys and the main database values.</p>
  
  <p>So I need to create one two datasources one is for Configs and other is the main database.</p>
  
  <p>I can create the config data sources using the same. But How I can create an second datasource as all the database details are stored in config database.</p>
  
  <p>can you pointers will be very helpful.</p>