Topic: 在一个页面,要使用数据库时,都要先得到一个连接,再关闭一个连接,这样子好像是很浪费资源的!有没有什么 |
Print this page |
1.在一个页面,要使用数据库时,都要先得到一个连接,再关闭一个连接,这样子好像是很浪费资源的!有没有什么 | Copy to clipboard |
Posted by: cyz99 Posted on: 2003-10-27 14:36 谁有连接池的一个教程啊? |
2.Re:在一个页面,要使用数据库时,都要先得到一个连接,再关闭一个连接,这样子好像是很浪费资源的!有没有? [Re: cyz99] | Copy to clipboard |
Posted by: emarket Posted on: 2003-10-27 14:39 一般的 j2ee container都有:) |
3.Re:在一个页面,要使用数据库时,都要先得到一个连接,再关闭一个连接,这样子好像是很浪费资源的!有没有? [Re: cyz99] | Copy to clipboard |
Posted by: yuanlu123 Posted on: 2003-10-29 09:53 google it |
4.Re:在一个页面,要使用数据库时,都要先得到一个连接,再关闭一个连接,这样子好像是很浪费资源的!有没有? [Re: cyz99] | Copy to clipboard |
Posted by: cyz99 Posted on: 2003-10-29 12:45 谢谢! |
5.Re: [Re: cyz99] | Copy to clipboard |
Posted by: wuchensir Posted on: 2003-10-30 09:43 网上有一篇文章,讨论的是连接池的简单实现,你可以去搜索一下 |
6.去看看apache的common-pools的实现 [Re: cyz99] | Copy to clipboard |
Posted by: whoami13 Posted on: 2003-10-30 12:56 去看看apache的common-pools的实现 |
7.Re: [Re: cyz99] | Copy to clipboard |
Posted by: eva001 Posted on: 2003-10-31 12:48 使用数据库连接池: 我记得 好像是(我用的是JB8) 1 在将JSP装入前,在初始化(XML)中设定数据库变量 2 设定初始的servlet将数据库连接池(就是固化内存,当时用的是静态类吧,记不清了) 3 在要使用时引用就可以了 当时在GOOGLE找了些书,查一下“连接池”就可找到吧,细节我忘了 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |