黑马程序员技术交流社区
标题:
关于数据池的一些配置之谈
[打印本页]
作者:
周志龙
时间:
2013-9-28 10:46
标题:
关于数据池的一些配置之谈
很多人刚开始接触数据库都是对它进行封装调用,可这样会师系统浪费很大的资源,所以很多方案为了解决这个问题就利用上了数据池的技术
我现在讲自己的服务器配置上传一份供大家参考吧.
<Context>
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->
<Resource name ="jdbc/enews"
username="think1"
password="a1234"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@localhost:1521:orcl"
auth="Container"
type="javax.sql.DataSource"
maxActive="20"
maxIdle="10"
maxWait="10000"
/>
<!-- Uncomment this to enable Comet connection tacking (provides events
on session expiration as well as webapp lifecycle) -->
<!--
<Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
-->
</Context>
复制代码
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/)
黑马程序员IT技术论坛 X3.2