diff --git a/artemis_sqlmap/chado_iBatis_config.xml b/artemis_sqlmap/chado_iBatis_config.xml index 67ab8a7940d33967dfe445f68aa4dc2424d95417..ffde46323fe88a53d7dfe3496fc4a5b077a558af 100644 --- a/artemis_sqlmap/chado_iBatis_config.xml +++ b/artemis_sqlmap/chado_iBatis_config.xml @@ -35,7 +35,6 @@ <!-- Configure a datasource to use with this SQL Map using SimpleDataSource. Notice the use of the properties from the above resource --> - <transactionManager type="JDBC" > <dataSource type="SIMPLE"> <property name="JDBC.Driver" value="org.postgresql.Driver"/> @@ -52,7 +51,28 @@ <property name="Pool.PingConnectionsNotUsedFor" value="1800000"/> </dataSource> </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 are relative to the classpath. -->