# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # dbcp2 pool torque.defaults.pool.defaultMaxIdle = 8 torque.defaults.pool.maxTotal = 10 # use ISO-8601 duration format like PnDTnHnMn.nS is true by default torque.defaults.pool.defaultDurationBetweenEvictionRuns=PT12S torque.defaults.pool.defaultMaxWait=PT15S torque.defaults.pool.defaultSoftMinEvictableIdle=PT10S # deprecated, but internally still introspectable by beanutils in dbcp2 2.10.0 #torque.defaults.pool.defaultTimeBetweenEvictionRunsMillis=3000 # if useDurationTextFormat is set to false, duration cold be set still in milliseconds #torque.defaults.pool.global.useDurationTextFormat=false #torque.defaults.pool.defaultDurationBetweenEvictionRuns=12000 #torque.defaults.pool.defaultMaxWait=15000 torque.database.default = postgresql torque.database.mysql.adapter=mysql torque.dsfactory.mysql.factory= org.apache.torque.dsfactory.SharedPool2DataSourceFactory torque.database.postgresql.adapter=postgresql torque.dsfactory.postgresql.factory= org.apache.torque.dsfactory.SharedPool2DataSourceFactory torque.database.oracle.adapter=oracle torque.dsfactory.oracle.factory= org.apache.torque.dsfactory.SharedPool2DataSourceFactory # # mariadb example assigning to mysql adapter or # #torque.dsfactory.mydb.connection.driver = org.mariadb.jdbc.Driver #torque.dsfactory.mydb.connection.url = jdbc:mariadb://host:port/mydb #torque.database.mydb.adapter=mysql #torque.dsfactory.mydb.factory= org.apache.torque.dsfactory.SharedPool2DataSourceFactory # # or use jndi in containers tomcat /META-INF/context.xml or WEB-INF/jetty-env.xml and set here #torque.dsfactory.mydb.factory=org.apache.torque.dsfactory.JndiDataSourceFactory #torque.dsfactory.mydb.jndi.path=java:comp/env/jdbc/mydb #torque.dsfactory.mydb.jndi.ttl=300000 torque.idbroker.prefetch=false