title: Java spring 3 datasource SingleConnectionDataSource
body: <p>Java - spring 3</p>
  
  <p>Following is the data source connect is configured in spring-context file.</p>
  
  <p>Problem is it is SingleConnectionDataSource and it does not work in multi threading, what is other choice which works in multi threading ?</p>
  
  <pre><code>&lt;bean id="dataSource" class="org.springframework.jdbc.datasource.SingleConnectionDataSource"&gt;
          &lt;property name="driverClassName" value="net.sourceforge.jtds.jdbcx.JtdsDataSource"/&gt;
          &lt;property name="url" value="${dataSource.url}"/&gt;
          &lt;property name="username" value="${dataSource.username}"/&gt;
          &lt;property name="password" value="${dataSource.password}"/&gt;
      &lt;/bean&gt;
  </code></pre>