亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? dbpool.html

?? 數(shù)據(jù)庫(kù)連接池dbpool_v4.8.3.zip
?? HTML
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
<html>
<head>
<title>Database Connection Pooling</title>
<meta name="Author" content="Giles Winstanley">
<meta name="keywords" content="DBPool, dbpool, database, jdbc, connection, pool, Pool, pooling, Pooling, connection pool, java, oracle, mysql">
<link rel="stylesheet" href="style.css" type="text/css">
</head>

<body bgcolor="#D0D0D0">
<div align="center">
<table border="0" width="85%"><tr><td>

<!-- Start main page here  -->


<div align="center">
<h1>DBPool - Java Database Connection Pooling</h1>
<p>Copyright &copy; Giles Winstanley<br>
Last updated: 21st July 2006<br>
Latest version: 4.8.3</p>
</div>


<hr size="1">


<h2>What is DBPool?</h2>

<p>A Java-based database connection pooling utility, which supports time-based expiry and statement caching, connection validation, and easy configuration using a pool manager. Also included is a generic object pool which can be extended to create your own pools of custom types.</p>

<p><b>Licence Agreement</b><br>
Currently you may freely use DBPool in all applications, both commercial and non-commercial, provided it is used for the purpose intended as stated in this document. The source code is provided for reference, but you are not permitted in any way to use the code for purposes other than that which is intended. You are permitted to redistribute the original code on the condition that it is also distributed with the original documentation. If the code is changed in any way and then redistributed an acknowledgment to the source of the material must be made along with a link to the website (<a href="http://www.snaq.net">www.snaq.net</a>), <em>and it must be made plainly clear that the code has been modified from the original</em>. It is not permitted to distribute a modified version of DBPool for commercial purposes without explicit permission from the author.</p>
<p><b>Disclaimer</b><br>
Whilst the product has been developed with the utmost care, the author takes no responsibility for the failure of DBPool in either commercial or non-commercial operation.</p>

<h2>Why would I use it?</h2>

<p>Applications that make use of databases often need to frequently obtain connections to the database. For example, a popular website that is serving out information from a back-end database may need to obtain a database connection for each client who is requesting a page with their browser. To ensure the application is capable of responding to each client fast enough we need to profile the time spent performing each of it's tasks. One of the most expensive tasks involving accessing databases is the initial creation of the connection. Once the connection has been made the transaction often takes place very quickly. This is where the connection pool comes in, by retaining a pool of already-opened connections so the application can simply grab one when it needs to, use it, and then hand it back, without the long wait for the initial creation of the connection.</p>


<h2>Where can I get it?</h2>

<p>Select one of the links below to download the version you require.</p>
<ul>
	<li><a href="DBPool_v4.8.3.zip">Download DBPool as ZIP</a> - contains JAR file &amp; all documentation
	<li><a href="DBPool_v4.8.3.jar">Download DBPool as JAR</a> and <a href="DBPool_v4.8.3_javadoc.zip">DBPool_javadoc.zip</a>
	<li><a href="DBPool_v4.8.3_src.zip">Download DBPool source</a>
</ul>


<a name="Requirements"></a><h2>What do I need to use it?</h2>

<p>The latest version requires Java 1.4 or greater, supporting the JDBC 3.0 specification. Versions 4.x have been updated to support the JDBC 3.0 specification and are not JDBC 2.0 compatible. Version 5.0 is in progress which aims to provide support for both specifications, and will hopefully be released soon once final changes are finalised and the testing is completed.</p>


<a name="Support"></a><h2>What about support?</h2>

<p><b>Please make sure you have read this documentation before sending a support email.</b> I frequently receive support emails from people who seem to have simply been too lazy to read the documentation and find which bits are relevant to them. Unsurprisingly I am not overly helpful to those people, and point them back to the documentation. Please remember to check here first, as you may find an updated version of the library. If you still need to ask for help, <b>please send all support emails concerning DBPool to <a href="mailto:support@snaq.net">this address</a></b>, and include as much information as possible to help diagnose the problem, including log file, stack traces, and source code, and properties file where appropriate. I will endeavour to reply as soon as possible, but due to the nature of my work (a lot of travel) it is possible that I won't be able to reply quickly.</p>

<p>If you would like to be added to the DBPool mailing list list to receive notification of new versions when they are released, send an email to the <a href="mailto:support@snaq.net?subject=Mailing List Subscription">support address</a> with your email contact details, asking to be added to the list.</p>


<hr size="1">


<h2>How do I use it?</h2>

<p>To use DBPool you need to have the JAR file (inside the ZIP file if you downloaded that) in a location where it's available for use by the host system you are using. For standalone applications this is usually simply within the CLASSPATH, but with many application servers a specific directory is recommended for JAR libraries. (For example, when used with Apache Tomcat it can be placed in the &lt;webapp&gt;/WEB-INF/lib directory.)</p>

<p>Usually DBPool is used in two different ways:</p>
<ol>
<li>Direct use of individual connection pools.
<li>Using the ConnectionPoolManager to manage multiple connection pools.
</ol>

<p>If you have never used DBPool before it's recommended that you start by simply integrating a <a href="#ConnectionPool">single connection pool</a> into your application/applet to see how it works and performs. This provides the simplest direct support for pooled database connections and will get you up and running quickly. Once you learn exactly how it behaves and the benefits it can give you can try the <a href="#ConnectionPoolManager">pool manager</a> approach to manage multiple pools if necessary.</p>

<p>If you require connection pooling for an application server hosted project such as a web application it is recommended that you use the <a href="#ConnectionPoolManager">pool manager</a>. This allows you to define the pooling parameters in an external file which allows you to change the parameters without recompilation of a possibly large project.</p>


<hr size="1">


<a name="ConnectionPool"></a><h3>Using a ConnectionPool</h3>

<p>Direct use of ConnectionPool objects can provide substantial performance gains for applications with minimum changes to the previous non-pooling code. A single ConnectionPool object provides a centralized location for access to connections to a single database with specific authentication credentials and parameters.</p>

<p>To create a single connection pool use a line like the following:</p>
<pre>
	ConnectionPool pool = new ConnectionPool(&lt;poolname&gt;,
 	                                         &lt;maxpool&gt;,
	                                         &lt;maxconn&gt;,
	                                         &lt;expiry&gt;,
	                                         &lt;url&gt;,
	                                         &lt;username&gt;,
	                                         &lt;password&gt;);
</pre>
<p>or...</p>
<pre>
	ConnectionPool pool = new ConnectionPool(&lt;poolname&gt;,
	                                         &lt;maxpool&gt;,
	                                         &lt;maxconn&gt;,
	                                         &lt;expiry&gt;,
	                                         &lt;url&gt;,
	                                         &lt;properties&gt;);
</pre>

<p>For example, to create a connection pool to access a database using the Oracle &quot;thin&quot; driver you could do something similar to this:</p>
<pre>
	String url = &quot;jdbc:oracle:thin:@myDB.myISP.com:1521:test&quot;;
	ConnectionPool pool = new ConnectionPool(&quot;local&quot;,
	                                         10,
	                                         30,
	                                         180000,  // milliseconds
	                                         url,
	                                         &quot;b_lightyear&quot;,
	                                         &quot;BeyondInfinity&quot;);
</pre>

<p>To obtain a Connection object from the pool and use it you can now do this:</p>
<pre>
	Connection con = null;
	long timeout = 2000;  // 2 second timeout
	try
	{
	  con = pool.getConnection(timeout);
	  if (con != null)
	    <i>...use the connection...</i>
	  else
	    <i>...do something else (timeout occurred)...</i>
	}
	catch (SQLException sqle)
	{
	  <i>...deal with exception...</i>
	}
	finally
	{
	  try { con.close(); }
	  catch (SQLException e) { ... }
	}
</pre>

<p>Once you are finished with the entire connection pool you should release the resources held by the pool:</p>
<pre>
	pool.release();
</pre>

<p>In addition to this basic use, you can initialize a number of connections within the pool. This is useful on applications startup, for instance, when you would like to create the connections so the first users to access the database don't have to wait for a connection to be created. It is advisable, and it makes the most sense, to do this just after creation of the ConnectionPool object:</p>
<pre>
	String url = &quot;jdbc:mysql://localhost:3306/homeDB&quot;;
	ConnectionPool pool = new ConnectionPool(&quot;local&quot;, 10, 20, 0, url, &quot;Nemo&quot;, &quot;LuckyFin&quot;);
	pool.init(10);
</pre>

<p>The example above will initialize all the available connections in the pool. The connections are created in a seperate thread, so that the application can get on with other things while the initialization is performed in the background.</p>


<hr size="1">


<a name="ConnectionPoolManager"></a><h3>Using the ConnectionPoolManager</h3>

<p>The ConnectionPoolManager provides comprehensive support for external definition of the behaviour of each connection pool, and additionally can manage multiple pools easily. (Better still, it even has integral support for multiple pool managers, allowing you to define pools from multiple sources, but this is seldom required.)</p>

<p>Conceptually a single pool manager provides access to a number of ConnectionPool objects, each of which provides access to a user-specified database source. For each pool manager the user specifies the JDBC drivers required, the log file for output, and the parameters for each connection pool. With this information the pool manager registers the necessary JDBC drivers and creates the pools ready for use. The log file shows a trace of the manager's activity, along with the activity of each of it's pools.</p>

<p>To use a pool manager you first need to obtain an instance of ConnectionPoolManager. This can be done in several different ways depending on your exact requirements, but the two easiest options are:</p>
<pre>
	ConnectionPoolManager.getInstance();
	ConnectionPoolManager.getInstance(File);
</pre>

<p>The <code>getInstance()</code> method returns an instance defined by the default properties file, which needs to be within the CLASSPATH (or equivalent location for specific host system). The <code>getInstance(File)</code> method returns an instance defined by the file specified. When either of these methods is called it either returns the requested instance immediately (if it already exists), or first creates the pools required and then returns the instance.</p>

<p>It is also possible to define properties using a user-specified file within the CLASSPATH, or even using a Properties object. Each option is explained in the following table:</p>
<blockquote>
<table border="1" cellspacing="0" cellpadding="3">
<tr>

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美va亚洲va| 国产美女精品在线| 又紧又大又爽精品一区二区| 亚洲欧美综合另类在线卡通| 三级影片在线观看欧美日韩一区二区 | 99精品国产一区二区三区不卡| 国产呦萝稀缺另类资源| 久国产精品韩国三级视频| 韩国v欧美v亚洲v日本v| 国产二区国产一区在线观看| 国产精品白丝av| 波多野结衣的一区二区三区| 成人av集中营| 一本色道久久综合亚洲aⅴ蜜桃| 91蝌蚪porny九色| 色婷婷av一区二区三区大白胸| 在线观看三级视频欧美| 欧美男人的天堂一二区| 91精品国产综合久久精品麻豆| 日韩欧美中文一区二区| 精品国产麻豆免费人成网站| 国产农村妇女毛片精品久久麻豆 | 日韩免费电影网站| 久久午夜色播影院免费高清 | 日韩精品一区第一页| 日本一不卡视频| 国产一区高清在线| 成人免费观看男女羞羞视频| av在线这里只有精品| 欧美午夜不卡在线观看免费| 91精品国产高清一区二区三区| 久久日韩精品一区二区五区| 国产精品的网站| 亚洲va欧美va人人爽| 精品夜夜嗨av一区二区三区| 成人自拍视频在线| 日本高清视频一区二区| 日韩午夜中文字幕| 欧美国产乱子伦| 亚洲一区二区三区爽爽爽爽爽| 久久国内精品自在自线400部| 高清不卡一区二区| 欧美日韩夫妻久久| 国产欧美日韩亚州综合| 亚洲国产日韩一级| 国产一区中文字幕| 精品污污网站免费看| 精品国产91洋老外米糕| 一区二区三区在线播放| 国产精品一区二区久激情瑜伽| 日本精品视频一区二区| 精品国产污污免费网站入口 | 午夜精品福利在线| 国产91精品一区二区麻豆亚洲| 欧美色偷偷大香| 国产欧美一区二区三区沐欲| 亚洲一区二区在线观看视频| 国产在线一区二区综合免费视频| 欧美在线观看18| 国产区在线观看成人精品| 午夜精品福利一区二区蜜股av| 国产一区二区福利| 91精品国产综合久久婷婷香蕉| 国产精品久久毛片| 久久se精品一区精品二区| 色婷婷综合中文久久一本| 久久久五月婷婷| 日韩精品国产欧美| 91香蕉国产在线观看软件| 久久老女人爱爱| 亚欧色一区w666天堂| 色哟哟一区二区在线观看| 国产日产欧美一区二区视频| 日韩不卡在线观看日韩不卡视频| 色综合欧美在线视频区| 国产亚洲成av人在线观看导航| 日欧美一区二区| 欧洲精品一区二区三区在线观看| 中文字幕高清一区| 国产一区二区在线观看免费| 欧美疯狂做受xxxx富婆| 亚洲综合色自拍一区| 色综合色狠狠天天综合色| 国产精品看片你懂得| 国产精品资源在线观看| 欧美第一区第二区| 欧美日韩国产片| 欧洲中文字幕精品| 国产人久久人人人人爽| 久久狠狠亚洲综合| 欧美一区二区三区播放老司机| 亚洲乱码日产精品bd| 北岛玲一区二区三区四区| 国产婷婷色一区二区三区四区| 久久国内精品自在自线400部| 欧美一级日韩一级| 日产国产欧美视频一区精品| 7777女厕盗摄久久久| 天堂蜜桃一区二区三区| 欧美日韩国产精品自在自线| 亚洲国产毛片aaaaa无费看| 欧美亚洲综合另类| 亚洲午夜久久久久久久久电影网| 91色porny在线视频| 亚洲免费观看高清完整版在线观看| 91亚洲大成网污www| 亚洲欧美二区三区| 91高清视频在线| 亚洲国产成人精品视频| 欧美日韩午夜在线| 日韩精品视频网站| 欧美成人一区二区三区片免费| 国产综合色产在线精品| 欧美电影免费观看高清完整版在线 | 欧美午夜一区二区三区| 亚洲成av人**亚洲成av**| 91精品国产一区二区三区蜜臀| 美女www一区二区| 久久精品一区二区三区不卡牛牛| 国产高清在线精品| 国产精品成人一区二区三区夜夜夜| 99精品热视频| 亚洲图片欧美视频| 91精品国产综合久久精品图片| 久久99精品一区二区三区三区| 久久蜜桃香蕉精品一区二区三区| 成人免费视频caoporn| 亚洲三级在线看| 欧美一区二区三区影视| 国产精品亚洲午夜一区二区三区| 国产精品国产三级国产三级人妇 | 欧美大片国产精品| 国产1区2区3区精品美女| 亚洲欧美日韩电影| 91麻豆精品久久久久蜜臀 | 欧美肥大bbwbbw高潮| 另类人妖一区二区av| 日本一区二区免费在线| 色伊人久久综合中文字幕| 五月综合激情婷婷六月色窝| 欧美本精品男人aⅴ天堂| 成人激情免费网站| 五月综合激情婷婷六月色窝| 久久亚洲二区三区| 色天天综合久久久久综合片| 美腿丝袜一区二区三区| 一区二区中文字幕在线| 6080yy午夜一二三区久久| 国产成人精品一区二区三区网站观看| 国产精品久久久久久久岛一牛影视| 欧美一a一片一级一片| 国产一区二区女| 亚洲永久精品国产| 久久精品日产第一区二区三区高清版 | 欧美日韩一本到| 国产电影精品久久禁18| 亚洲午夜久久久久久久久电影院| 精品捆绑美女sm三区| 色欧美日韩亚洲| 国产在线精品一区二区夜色| 亚洲综合色网站| 欧美激情综合在线| 欧美一级日韩一级| 欧美在线免费观看亚洲| 懂色av噜噜一区二区三区av| 日韩电影免费在线| 亚洲精品乱码久久久久久久久 | 日韩一区二区麻豆国产| 91在线播放网址| 国产在线看一区| 视频一区欧美日韩| 亚洲精品国产一区二区精华液| 欧美精品一区二区三区久久久 | 亚洲一区国产视频| 国产精品欧美一区二区三区| 日韩一区二区三区视频在线 | 欧美色电影在线| 成人深夜福利app| 另类小说视频一区二区| 亚洲成人激情自拍| 亚洲日本va午夜在线电影| 久久精品亚洲精品国产欧美kt∨| 91精品国产综合久久久久| 欧美午夜精品久久久| 一本久道久久综合中文字幕| 国产在线国偷精品免费看| 美国一区二区三区在线播放| 午夜精品一区二区三区电影天堂| 亚洲你懂的在线视频| 国产精品久久久久aaaa樱花| 久久久精品天堂| 久久久三级国产网站| 欧美tk丨vk视频| 精品三级在线看| 精品久久一区二区| 欧美videos大乳护士334| 日韩欧美一级二级三级 | 肉色丝袜一区二区| 亚洲国产精品久久人人爱| 亚洲综合免费观看高清完整版|