pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Donald Fraser <postgres@kiwi-fraser.net>
To: [JDBC] <pgsql-jdbc@postgresql.org>
Subject: Re: Java proxies connection to postgres
Date: Mon, 9 Aug 2010 17:58:08 +0100
Message-ID: <EE93477508344648BD250F951262A910@DEVELOP1> (raw)
References: <AANLkTimPbHhimxz48Yva7apqBaTFH=DvDww-3gb1pc2h@mail.gmail.com>
	<4C5EB971.7000403@postnewspapers.com.au>
	<AANLkTi=xL6TOwZ2RbZhp0Fj8xfL8jZqmGpd58e_rjJOd@mail.gmail.com>
	<AANLkTimWGZAAKzcTP=DYkYyqJ+6QQcvokmvuCn1o_-Ke@mail.gmail.com>
	<7BF0F1662EE14F6FA6F3C8EFE951A69F@DEVELOP1>
	<AANLkTin=ra9vcUZyNmiFiXGt5K-=n=Sz3ezjdic83cNc@mail.gmail.com>
	<72F787BB59B24A4C82BF8CDCB509AC17@DEVELOP1>
	<alpine.DEB.2.00.1008091354510.2654@aragorn.flymine.org>
	<3A6C1566A8A7456483F4F0B1FB5BC28D@DEVELOP1>
	<4C602A64.5000909@postnewspapers.com.au>


>> You either need to modify the JDBC driver code to make it proxy aware
>> (see my original post for the source code on how) or you need to provide
>> your own implementation for the standard SocketFactory, via
>> Socket.setSocketImplFactory(SocketImplFactory fac), and provide your
>> proxy connection code here.
>
> I'm wondering if the JDBC driver could  use a factory arg for the
> regular socket factory, like it has for SSLSocketFactory with
> "sslfactory".  That'd make this, and other situations using proxies with
> weird auth schemes, various tunneling systems, etc much easier to use
> without JDBC driver mods or changing system-wide behaviour for
> potentially unrelated socket-using operations.

As you stated is it would be very similar code to what is in place for the 
SSL SocketFactory scenario.
So IMO I think it would be useful.

Donald




view thread (17+ messages)

Message-ID: <EE93477508344648BD250F951262A910@DEVELOP1>
Permalink:  ../EE93477508344648BD250F951262A910@DEVELOP1/
Also on:    postgresql.org/message-id/EE93477508344648BD250F951262A910@DEVELOP1

 · 

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: postgres@kiwi-fraser.net
  Subject: Re: Java proxies connection to postgres
  In-Reply-To: <EE93477508344648BD250F951262A910@DEVELOP1>
  References: <AANLkTimPbHhimxz48Yva7apqBaTFH=DvDww-3gb1pc2h@mail.gmail.com> <4C5EB971.7000403@postnewspapers.com.au> <AANLkTi=xL6TOwZ2RbZhp0Fj8xfL8jZqmGpd58e_rjJOd@mail.gmail.com> <AANLkTimWGZAAKzcTP=DYkYyqJ+6QQcvokmvuCn1o_-Ke@mail.gmail.com> <7BF0F1662EE14F6FA6F3C8EFE951A69F@DEVELOP1> <AANLkTin=ra9vcUZyNmiFiXGt5K-=n=Sz3ezjdic83cNc@mail.gmail.com> <72F787BB59B24A4C82BF8CDCB509AC17@DEVELOP1> <alpine.DEB.2.00.1008091354510.2654@aragorn.flymine.org> <3A6C1566A8A7456483F4F0B1FB5BC28D@DEVELOP1> <4C602A64.5000909@postnewspapers.com.au> <EE93477508344648BD250F951262A910@DEVELOP1>

* 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