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