Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B2F569FA2DF for ; Thu, 25 Oct 2007 19:23:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 38389-01-2 for ; Thu, 25 Oct 2007 19:23:56 -0300 (ADT) X-Greylist: delayed 00:32:09.277858 by SQLgrey-1.7.5 Received: from venus.universe.linuxdelta.de (venus.universe.linuxdelta.de [88.198.59.50]) by postgresql.org (Postfix) with ESMTP id DB7199FC930 for ; Thu, 25 Oct 2007 19:23:55 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by venus.universe.linuxdelta.de (Postfix) with ESMTP id DC5251F4007 for ; Thu, 25 Oct 2007 23:51:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at venus.local Received: from venus.universe.linuxdelta.de ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZLM2QczP01m4 for ; Thu, 25 Oct 2007 23:51:36 +0200 (CEST) Received: from [192.168.2.13] (d122006.adsl.hansenet.de [80.171.122.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by venus.universe.linuxdelta.de (Postfix) with ESMTP id 976011F4004 for ; Thu, 25 Oct 2007 23:51:36 +0200 (CEST) Message-ID: <47210FE5.8000909@lordlamer.de> Date: Thu, 25 Oct 2007 23:51:33 +0200 From: Frank Habermann User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: multiple connections to db over jsp Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/138 X-Sequence-Number: 17710 Hello folks, First i must say that i am relativ new with java, tomcat and servlet and jsp. I know how to create a simple connection to postgresql with jdbc. I want to create some simple pages with jsp's that uses postgresql as database. My problem is how to implement this connection as best in jsp's. So i want to create 10 (for example) connections to postgresql if the application is loaded in tomcat so that if a user call a jsp over the browser the jsp don not create a connection itself. Is this possible? I think this is possible in a servlet. But is it possible in a jsp? Can somebody give me some hints or some documentation for this?! Thanks a lot Frank Habermann