GeeCON Prague 2014*
The moose likes JDBC and the fly likes JDBC Connection pooling in postgresql Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC Connection pooling in postgresql" Watch "JDBC Connection pooling in postgresql" New topic
Author

JDBC Connection pooling in postgresql

prantik bordoloi
Greenhorn

Joined: Jun 12, 2001
Posts: 5
can somebody please help me in making a connection pool class for postgresql using type 4 driver. if the possible a sample code !!
where can i get some good coding examples of connection pooling in the net ?
Bjarki Holm
Author
Ranch Hand

Joined: May 25, 2001
Posts: 65
Prantik,
what JDBC drivers are you using? Most likely, if they are JDBC 2.0 compliant, they come with an implementation of the <code>javax.sql.ConnectionPoolDataSource</code> interface, which can be be used for connection pooling.
Cheers,
------------------
Bjarki Holm
Author of Professional Java Data


Bjarki Holm
prantik bordoloi
Greenhorn

Joined: Jun 12, 2001
Posts: 5
i am using postgresql driver provided by postgresql.org, though it is type 4 driver it is not supporting JDBC2.x specfication
rani bedi
Ranch Hand

Joined: Feb 06, 2001
Posts: 358
check the following link :
http://www.javaworld.com/javaworld/jw-10-2000/jw-1027-pool.html


Cheers,<br />Rani<br />SCJP, SCWCD, SCBCD
Franck Rasolo
Greenhorn

Joined: May 29, 2001
Posts: 21
Originally posted by Bjarki Holm:
Prantik,
what JDBC drivers are you using? Most likely, if they are JDBC 2.0 compliant, they come with an implementation of the <code>javax.sql.ConnectionPoolDataSource</code> interface, which can be be used for connection pooling.
Cheers,

Not necessarily. The <code>javax.sql.ConnectionPoolDataSource</code> interface is not part of JDBC 2.0 Core. It belongs to the JDBC 2.0 Optional Package (a.k.a. Standard Extensions). Therefore, if it doesn't support the JDBC 2.x spec, you can either write your own connection pooling framework or use an existing one such as PoolMan, which is free and open source.

Franck Rasolo
Independent Java Consultant
London, UK


<i>Franck Rasolo<br />Independent Consultant<br />London, UK</i>
 
GeeCON Prague 2014
 
subject: JDBC Connection pooling in postgresql