<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Java Interview Questions &#187; Connection Pooling</title>
	<atom:link href="http://www.bestjavainterviewquestions.com/category/jdbc-questions-java-jdbc-questions-core-java-interview-questions/connection-pooling-jdbc-questions-java-jdbc-questions-core-java-interview-questions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bestjavainterviewquestions.com</link>
	<description>Java Interview Questions &#124; Core Java Interview Questions &#124; Advanced Java Interview Questions &#124; EJB Interview Questions &#124; J2EE Interview Questions &#124; Hibernate Interview Questions</description>
	<lastBuildDate>Fri, 03 Feb 2012 10:23:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Define Connection Pooling</title>
		<link>http://www.bestjavainterviewquestions.com/define-connection-pooling/</link>
		<comments>http://www.bestjavainterviewquestions.com/define-connection-pooling/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 05:24:36 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[Connection Pooling]]></category>
		<category><![CDATA[Jdbc executeUpdate]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/?p=411</guid>
		<description><![CDATA[Q) What Is Connection Pooling? A) Connection pooling is a technique of creating and managing a pool of connections that are ready for use by any thread that needs them. This technique of &#8220;pooling&#8221; connections is based on the fact that most applications only need a thread to have access to a JDBC connection when [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Q) What Is Connection Pooling? </strong></p>
<p><strong>A) </strong>Connection pooling is a technique of creating and managing a pool of connections that are ready for use by any thread that needs them.</p>
<p>This technique of &#8220;pooling&#8221; connections is based on the fact that most applications only need a thread to have access to a JDBC connection when they are actively processing a transaction, which usually take only milliseconds to complete. When not processing a transaction, the connection would otherwise sit idle. Instead, connection pooling allows the idle connection to be used by some other thread to do useful work.</p>
<p>In practice, when a thread needs to do work against a MySQL or other database with JDBC, it requests a connection from the pool. When the thread is finished using the connection, it returns it to the pool, so that it may be used by any other threads that want to use it.</p>
<p>When the connection is &#8220;loaned out&#8221; from the pool, it is used exclusively by the thread that requested it. From a programming point of view, it is the same as if your thread called DriverManager.getConnection() every time it needed a JDBC connection, however with connection pooling, your thread may end up using either a new, or already-existing connection.</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li>November 27, 2008 -- <a href="http://www.bestjavainterviewquestions.com/making-a-frame-non-resizable-in-java/" title="Making a Frame Non-Resizable in Java ">Making a Frame Non-Resizable in Java </a> (0)</li><li>October 4, 2008 -- <a href="http://www.bestjavainterviewquestions.com/what-is-jtapi/" title="What is JTAPI">What is JTAPI</a> (0)</li><li>September 17, 2008 -- <a href="http://www.bestjavainterviewquestions.com/hibernate-introduction/" title="Hibernate Introduction">Hibernate Introduction</a> (0)</li><li>July 21, 2010 -- <a href="http://www.bestjavainterviewquestions.com/how-to-make-a-class-serializable/" title="How to Make a Class Serializable">How to Make a Class Serializable</a> (1)</li><li>August 15, 2008 -- <a href="http://www.bestjavainterviewquestions.com/what-is-thread-how-to-use-threads/" title="What is Thread, How to Use Threads?">What is Thread, How to Use Threads?</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/define-connection-pooling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

