Re: Is it possible to load two different versions of the JDBC driver in the same application?

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Rob Sargent <robjsargent(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Is it possible to load two different versions of the JDBC driver in the same application?
Date: 2014-04-11 21:50:17
Message-ID: CADK3HHLk2njKspB_zGq-32y6e-44CYvsBOQVDnoqwTVOrFvO3Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ya, they probably don't like that we use server side prepared statements

Might be possible to just mess with classpath's to get it done.

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca

On 11 April 2014 17:39, Rob Sargent <robjsargent(at)gmail(dot)com> wrote:

> On 04/11/2014 03:31 PM, Tecno Brain wrote:
>
> I have a Java application that is using Postgres 9.1, and we use the
> latest 9.1 JDBC driver.
> The same Java app requires access now to a Redshift cluster. Amazon
> recommends to use a Postgres 8 JDBC driver for connecting to Redshift.
>
> Can I load both drivers in the same application ?
>
> I currently use the Apache database connection pool configured through
> Tomcat's context.xml to load the driver and handle the connection pool.
>
> -Jorge
>
>
>
> Can you easily isolate the two? i.e. can you easily know which driver
> you want for each db access. If so, I suspect some classloader games are
> in your future. If not, tell Amazon you'll be moving to Rackspace.
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Anupama Ramaswamy 2014-04-12 06:12:40 Re: streaming replication and recovery
Previous Message Rob Sargent 2014-04-11 21:39:54 Re: Is it possible to load two different versions of the JDBC driver in the same application?