Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Explain in detail the fundamental of connection pooling
Explain in detail the fundamental of connection pooling?
✍: Guest
When a connection is opened first time a connection pool is created and is based on the
exact match of the connection string given to create the connection object. Connection
pooling only works if the connection string is the same. If the connection string is different,
then a new connection will be opened, and connection pooling won't be used.
Lets try to explain the same pictorially. In the above figure you can see there are three
requests “Request1”, “Request2” and “Request3”. “Request1” and “Request3” have
same connection string so no new connection object is created for “Request3” as the
connection string is same. They share the same object “ConObject1”. But new object
“ConObject2” is created for “Request2” as the connection string is different.
Note: - The difference between the connection string is that one has “User id=sa” and other
has “User id=Testing”.
2007-10-24, 7194👍, 0💬
Popular Posts:
What is the difference between CALL_FORM, NEW_FORM and OPEN_FORM? CALL_FORM: start a new form and pa...
Who Developed HTML? HTML was originally developed by Tim Berners-Lee while at CERN, and popularized ...
What will be printed as the result of the operation below: #define swap(a,b) a=a+b;b=a-b;a=a-b; void...
How Can we change priority & what levels of priority are provided by Dot Net? Thread Priority ca...
When should the method invokeLater() be used? This method is used to ensure that Swing components ar...