Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 860C66342A8 for ; Fri, 29 Jan 2010 22:40:55 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 95108-07 for ; Sat, 30 Jan 2010 02:40:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.postgresql.org (Postfix) with SMTP id 726B16325C9 for ; Fri, 29 Jan 2010 22:40:44 -0400 (AST) Received: (qmail invoked by alias); 30 Jan 2010 02:40:41 -0000 Received: from cm180.sigma72.maxonline.com.sg (EHLO [192.168.1.100]) [218.212.72.180] by mail.gmx.net (mp002) with SMTP; 30 Jan 2010 03:40:41 +0100 X-Authenticated: #592960 X-Provags-ID: V01U2FsdGVkX18kZ0473Kwk269CEJOi4L0BiNsSoEUAhIeLPqqbmW RHsRPTJxcHpF2V Message-ID: <4B639C25.5060501@gmx.de> Date: Sat, 30 Jan 2010 10:40:37 +0800 From: Sven Hafner User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Is there a schema parameter for the jdbc URL ? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.60999999999999999 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201001/81 X-Sequence-Number: 20277 Hi ! Asked the same question previously in the Glassfish forum, but I dont get it to work. Not sure if it is a GF or postgres jdbc issue/feature. Can I use the schema in the jdbc URL ? My GF mailing-list question for reference: I create a connection pool and connection pointing to a PostgreSQL DB. Is there a way to point to a specific schema inside the DB (like a schema parameter) ? I need to avoid a schema annotation inside the EJB code, so I can point several instances of the same application (but different PU pointing to different jndi jdbc resource) to different schemes in the same postgres instance. Glassfish V3 and PostgreSQL 8.4 postgresql-8.4-701.jdbc3.jar Thanks for input Sven