<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Test entry
for
demonstration purposes -->
<Environment name=
"simpleValue"
type=
"java.lang.Integer"
value=
"30"
/>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
<Resource name=
"UserDatabase"
auth=
"Container"
type=
"org.apache.catalina.UserDatabase"
description=
"User database that can be updated and saved"
factory=
"org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname=
"conf/tomcat-users.xml"
/>
<Resource name=
"mydataSource"
auth=
"Container"
type=
"javax.sql.DataSource"
url=
"jdbc:oracle:thin:@192.168.2.104:1521:ora10g"
driverClassName=
"oracle.jdbc.driver.OracleDriver"
password=
"aa"
username=
"aa"
initialSize=
"5"
maxActive=
"10"
maxIdle=
"5"
minIdle=
"2"
maxWait=
"10000"
removeAbandoned=
"true"
logAbandoned=
"true"
removeAbandonedTimeout=
"60"
timeBetweenEvictionRunsMillis=
"900000"
minEvictableIdleTimeMillis=
"1800000"
numTestsPerEvictionRun=
"100"
validationQuery=
"select count(0) from dual"
poolPreparedStatements=
"true"
maxOpenPreparedStatements=
"100"
/>
</GlobalNamingResources>