3
0
Fork 0
fsim/WebRoot/META-INF/context.xml

74 lines
2.2 KiB
XML
Raw Permalink Normal View History

2022-11-13 13:46:54 +00:00
<?xml version="1.0"?>
<Context path="/"
docBase="${catalina.home}/webapps/ROOT"
debug="5"
reloadable="true"
crossContext="true"
>
<Resource name="mail/Session"
auth="Container"
type="javax.mail.Session"
/>
<ResourceParams name="mail/Session">
<parameter>
<name>mail.smtp.host</name>
<value>localhost</value>
</parameter>
</ResourceParams>
<!--
<Resource name="jdbc/fsim_dba"
description="DB Connection for fsim"
scope="Shareable"
auth="Container"
type="com.mchange.v2.c3p0.ComboPooledDataSource"
maxPoolSize="4"
minPoolSize="2"
acquireIncrement="1"
driverClass="org.postgresql.Driver"
user="fsim"
password="fsim"
factory="org.apache.naming.factory.BeanFactory"
jdbcUrl="jdbc:postgresql://localhost/fsim"
/>
-->
<Resource name="jdbc/fsim_dba"
scope="Shareable"
type="javax.sql.DataSource"
auth="Container"
factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
accessToUnderlyingConnectionAllowed="false"
defaultAutoCommit="false"
defaultReadOnly="false"
defaultTransactionIsolation="READ_COMMITTED"
validationQuery="select 1"
testOnBorrow="true"
testOnReturn="false"
testWhileIdle="false"
initialSize="5"
minIdle="2"
maxIdle="10"
maxActive="20"
maxWait="6000"
removeAbandoned="true"
removeAbandonedTimeout="5"
logAbandoned="true"
timeBetweenEvictionRunsMillis="2000"
minEvictableIdleTimeMillis="20000"
numTestsPerEvictionRun="5"
driverClassName="org.postgresql.Driver"
username="fsim" password="fsim"
url="jdbc:postgresql://localhost/fsim"
/>
</Context>