Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id D133A632B89 for ; Mon, 9 Aug 2010 13:58:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 65891-01 for ; Mon, 9 Aug 2010 16:58:16 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.cisx.com (mail.cisx.com [213.133.202.139]) by mail.postgresql.org (Postfix) with ESMTP id 71DCF632B13 for ; Mon, 9 Aug 2010 13:58:16 -0300 (ADT) Received: from DEVELOP1 ([192.168.100.50]) by mail.cisx.com (8.13.1/8.13.1) with SMTP id o79Gw8I4015741 for ; Mon, 9 Aug 2010 17:58:14 +0100 Message-ID: From: "Donald Fraser" To: "[JDBC]" References: <4C5EB971.7000403@postnewspapers.com.au><7BF0F1662EE14F6FA6F3C8EFE951A69F@DEVELOP1> <72F787BB59B24A4C82BF8CDCB509AC17@DEVELOP1> <3A6C1566A8A7456483F4F0B1FB5BC28D@DEVELOP1> <4C602A64.5000909@postnewspapers.com.au> Subject: Re: Java proxies connection to postgres Date: Mon, 9 Aug 2010 17:58:08 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5843 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.448 tagged_above=-10 required=5 tests=BAYES_40=-0.001, STOX_REPLY_TYPE=0.439, T_FRT_STOCK2=0.01 X-Spam-Level: X-Archive-Number: 201008/39 X-Sequence-Number: 20842 >> 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