Skip to content
Snippets Groups Projects
Commit 57423163 authored by tjc's avatar tjc
Browse files

example DBCP transactionManager

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@8879 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 48d0d7bc
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
<!-- Configure a datasource to use with this SQL Map using SimpleDataSource. <!-- Configure a datasource to use with this SQL Map using SimpleDataSource.
Notice the use of the properties from the above resource --> Notice the use of the properties from the above resource -->
<transactionManager type="JDBC" > <transactionManager type="JDBC" >
<dataSource type="SIMPLE"> <dataSource type="SIMPLE">
<property name="JDBC.Driver" value="org.postgresql.Driver"/> <property name="JDBC.Driver" value="org.postgresql.Driver"/>
...@@ -52,7 +51,28 @@ ...@@ -52,7 +51,28 @@
<property name="Pool.PingConnectionsNotUsedFor" value="1800000"/> <property name="Pool.PingConnectionsNotUsedFor" value="1800000"/>
</dataSource> </dataSource>
</transactionManager> </transactionManager>
<!-- the following alternative transactionmanager requires the
libraries commons-dbcp and common-pool in the CLASSPATH
<transactionManager type="JDBC">
<dataSource type="DBCP">
<property name="driverClassName" value="org.postgresql.Driver"/>
<property name="url" value="jdbc:postgresql://${chado}"/>
<property name="username" value="${username}"/>
<property name="password" value="${password}"/>
<property name="maxActive" value="3"/>
<property name="maxIdle" value="1"/>
<property name="maxWait" value="10000"/>
<property name="validationQuery" value="select * from cv"/>
<property name="logAbandoned" value="false"/>
<property name="removeAbandoned" value="false"/>
<property name="removeAbandonedTimeout" value="50000"/>
</dataSource>
</transactionManager>
-->
<!-- Identify all SQL Map XML files to be loaded by this SQL map. Notice the paths <!-- Identify all SQL Map XML files to be loaded by this SQL map. Notice the paths
are relative to the classpath. --> are relative to the classpath. -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment