Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id EEBE39FB4DF for ; Thu, 4 Oct 2007 13:38:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 83051-02-7 for ; Thu, 4 Oct 2007 13:38:21 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mx01.burntmail.com (mx01.burntmail.com [69.93.121.66]) by postgresql.org (Postfix) with ESMTP id 60A809FB532 for ; Thu, 4 Oct 2007 13:38:22 -0300 (ADT) Received: from pool-72-66-95-130.washdc.fios.verizon.net ([72.66.95.130] helo=[127.0.0.1]) by mx01.burntmail.com with esmtpa (Exim 4.63) (envelope-from ) id 1IdTiO-0008Rb-IO for pgsql-jdbc@postgresql.org; Thu, 04 Oct 2007 11:38:20 -0500 Message-ID: <470516F9.5060003@burntmail.com> Date: Thu, 04 Oct 2007 12:38:17 -0400 From: Guy Rouillier User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Connection pooling References: <5973945.2729391191496113452.JavaMail.root@ps1.bredband.net> In-Reply-To: <5973945.2729391191496113452.JavaMail.root@ps1.bredband.net> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 000778-3, 10/04/2007), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/47 X-Sequence-Number: 17619 Håkan Jacobsson wrote: > Hi, > > I'm trying to convert a large EJB 3.0 - project into a > standalone JDBC project (J2SE). > I want (of course) to optimize performance best I can, > especially in regard to database connections. > JDBC Connection pooling seems to be an interesting feature. > Can someone point me to a good article, tutorial on connection > pooling? In what environment will you be running your standalone JDBC project? If you are just running it from the command line using "java ...", then connection pooling isn't going to be of much assistance. Regardless, I did a Google search of "postgresql connection pool" and got lots of hits. pgpool is the first one, and is a connection pool specifically for PostgreSQL. -- Guy Rouillier