Can someone tell me or point me to a document/tutorial that explains the usage of Spring Connection Pool Datasource?
+1
A:
AFAIK Spring doesn't include a pooled DataSource... you can use Apache DBCP for that, if you need a connection pool in a J2SE application. For container-hosted apps, you should configure a DataSource in the container and use it from your app.
Chochos
2009-04-22 15:38:41
+1, experimented (with Apache DBCP) in a recent project.
Olivier
2009-04-23 21:38:26
+2
A:
Spring doesn't support inbuilt pooling. You should use a third party pool as mentioned above. DBCP and cp30 both work like a charm with spring. All you need to do is when defining a datasource in your context.xml, just use DBCP to define it.
Gaurav
2009-04-22 22:53:43
+1
A:
You might use a pooled datasource from the jdbc driver. E.g. in oracles library there is one:
<bean id="dataSource"
class="oracle.jdbc.pool.OracleConnectionPoolDataSource">
<property name="URL" value="jdbc:oracle:thin:@wherever:1234:whatever" />
<property name="user" value="theuser" />
<property name="password" value="thepassword" />
</bean>
hstoerr
2010-01-11 10:29:18
A:
How we will know whether created connection is returning to pool or not in this framework?
vishnu
2010-09-21 17:08:53