Re: Switching databases over JDBC/ODBC - Mailing list pgsql-general

From Martin Gainty
Subject Re: Switching databases over JDBC/ODBC
Date
Msg-id BLU142-W11EED5CEB13F9671997375AE4E0@phx.gbl
Whole thread Raw
In response to Re: Switching databases over JDBC/ODBC  (John R Pierce <pierce@hogranch.com>)
Responses Re: Switching databases over JDBC/ODBC
List pgsql-general
true
scott was asking if you can utilise the same JDBC Type IV DB connection for both
the original DB connection and utilise that same connection to connect to another
DB (with a fresh set of database parameters)
my answer is i do not know of a way to use the same connection for 2 different DB's
but perhaps a vendor/contractor/consultant such as yourself may know of connection mechanism which would dynamically switch the original connection from old DB parameters to new DB parameters?

Martin Gainty
______________________________________________
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Ez az üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.





> Date: Fri, 29 May 2009 18:24:10 -0700
> From: pierce@hogranch.com
> To: mgainty@hotmail.com
> CC: artacus@comcast.net; pgsql-general@postgresql.org
> Subject: Re: [GENERAL] Switching databases over JDBC/ODBC
>
> Martin Gainty wrote:
> > does '\connect' work with Type-IV JDBC Database?
> > can you effectively 'drop' the first DB connection
> > and somehow read a different set of DB parameters to connect to a new DB?
>
> \connect is a psql command, nothing to do with JDBC.
>
> In Java, you would Close() a JDBC connection, then getConnection() to
> create a new one.
>
>


Hotmail® has a new way to see what's up with your friends. Check it out.

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: Switching databases over JDBC/ODBC
Next
From: John R Pierce
Date:
Subject: Re: Switching databases over JDBC/ODBC