Tomcat数据库连接池配置

<Resource name="jdbc/soDB"
                   auth="Container"
                   type="javax.sql.DataSource"
                   maxIdle="30"
                   minIdle="2"
                   maxWait="60000"
                   maxActive="1000"
                   testOnBorrow="true"
                   testWhileIdle="true"
                   validationQuery="select 1 from dual"
                   username="username"
                   password="password"
                   driverClassName="oracle.jdbc.OracleDriver"
                   url="jdbc:oracle:thin:@192.168.153.147:1521:orcl">
</Resource>

 

<?xml version="1.0" encoding="UTF-8"?>
<Context>   
     <ResourceLink global="jdbc/cms" name="jdbc/cms" type="javax.sql.DataSource"/>       
</Context>

 

你可能感兴趣的:(tomcat)