X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 85D4711F671F for ; Wed, 26 Apr 2006 05:32:20 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 63567-06 for ; Wed, 26 Apr 2006 05:30:40 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (unknown [212.211.145.186]) by postgresql.org (Postfix) with ESMTP id 6C71D11F623C for ; Wed, 26 Apr 2006 05:30:39 -0300 (ADT) Received: from kingfisher.intern.logix-tt.com (Taeb5.t.pppool.de [89.55.174.181]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id 1AE6E656CD; Wed, 26 Apr 2006 10:31:43 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id 7DB02184BCBDB; Wed, 26 Apr 2006 10:30:52 +0200 (CEST) Message-ID: <444F2FBB.1060101@logix-tt.com> Date: Wed, 26 Apr 2006 10:30:51 +0200 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: George Woodring Cc: pgsql-jdbc@postgresql.org Subject: Re: Automated setting of timezone with connection pooling References: <1B1B254441DB31448BD34C5BD73B0B8B2904B1@PHOENIX.istructure.com> In-Reply-To: <1B1B254441DB31448BD34C5BD73B0B8B2904B1@PHOENIX.istructure.com> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/159 X-Sequence-Number: 15093 Hi, Woody, George Woodring wrote: > We have multiple databases in a cluster ( one for each of our customers > ) which the default time zone needs to be different. We are currently > using dbcp to do our connection pooling. Can anyone recommend a good > way of automatically setting the timezone when the connection is made? Chris already pointed out how to set the time zones per database and per user. Some connection poolings also include the possibility to specify commands which are executed after connecting and before reusing a connection. For JBoss foo-ds.xml, the syntax would be like: ... ... SET timezone TO 5 SET timezone TO 5 HTH, Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org