Is there a schema parameter for the jdbc URL ?

From: Sven Hafner <sven(dot)hafner(at)gmx(dot)de>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Is there a schema parameter for the jdbc URL ?
Date: 2010-01-30 02:40:37
Message-ID: 4B639C25.5060501@gmx.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Maciek Sakrejda 2010-01-30 10:23:59 Re: Is there a schema parameter for the jdbc URL ?
Previous Message Andrew Lindesay 2010-01-29 21:48:56 Re: LIKE and ESCAPING in JDBC Select Statement