pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sven Hafner <sven.hafner@gmx.de>
To: pgsql-jdbc@postgresql.org
Subject: Is there a schema parameter for the jdbc URL ?
Date: Sat, 30 Jan 2010 10:40:37 +0800
Message-ID: <4B639C25.5060501@gmx.de> (raw)

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



view thread (3+ messages)  latest in thread

Message-ID: <4B639C25.5060501@gmx.de>
Permalink:  ../4B639C25.5060501@gmx.de/
Also on:    postgresql.org/message-id/4B639C25.5060501@gmx.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: sven.hafner@gmx.de
  Subject: Re: Is there a schema parameter for the jdbc URL ?
  In-Reply-To: <4B639C25.5060501@gmx.de>
  References: <4B639C25.5060501@gmx.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox