Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 18130 invoked from network); 28 May 2009 01:10:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 May 2009 01:10:33 -0000 Received: (qmail 80876 invoked by uid 500); 28 May 2009 01:10:44 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 80796 invoked by uid 500); 28 May 2009 01:10:44 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 80786 invoked by uid 99); 28 May 2009 01:10:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 May 2009 01:10:44 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [202.61.188.30] (HELO mail.martinjonkersmotors.com.au) (202.61.188.30) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 28 May 2009 01:10:33 +0000 X-DN-AuthenticatedSender: RKUCAUJ4FHCHNRKARF3X4UCJNPJEXNYH-FnQpUchulATUkKCB4 CgXwBb3ZLY4aYxZA4afXMy12xV5cRISnSp4Ir7KD122NfvtGO0 VJPukT/uJFJdzLUx37ywAxkVH5nLCRu9mRw80s34=--- X-DN-AuthorizedIP: RKUCAUJ4FHCHNRKARF3X4UCJNPJEXNYH-N+qxhoLyCbJN4jglw SQkhKY39WlAx47E+cxwH8qB1rA=--- Received: from 172.16.1.152 ([172.16.1.152]) by mail.martinjonkersmotors.com.au (DeskNow) with SMTP ID 772 for ; Thu, 28 May 2009 11:10:10 +1000 (EST) From: "Dale Harris" To: "'Commons Users List'" References: <019a01c9de84$7121ce20$53656a60$@com.au> <01b401c9de97$1cf11780$56d34680$@com.au> <01d901c9df1d$96339ba0$c29ad2e0$@com.au> <25aac9fc0905271625w58b68d1el6da2db1af5fc0e0d@mail.gmail.com> In-Reply-To: <25aac9fc0905271625w58b68d1el6da2db1af5fc0e0d@mail.gmail.com> Subject: RE: TelnetClient in common.net v2.0 Date: Thu, 28 May 2009 11:05:50 +1000 Organization: Martin Jonkers Motors Message-ID: <020c01c9df30$7279d0e0$576d72a0$@com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 thread-index: AcnfIn5x0AUvOSVVSFWV0oJ9vSo5qwADXYNw Content-Language: en-au X-Virus-Checked: Checked by ClamAV on apache.org Hi Sebb, I would have thought in an object orientated language like Java, I would have thought that obtaining a reference to a child object and updating it, it would then automatically be reflected through the parent object. I have checked System.getProperty() for the following items after I removed them, and they then return null. Regards, Dale Harris IT Support -----Original Message----- From: sebb [mailto:sebbaz@gmail.com] Sent: Thursday, 28 May 2009 9:25 To: Commons Users List Subject: Re: TelnetClient in common.net v2.0 On 27/05/2009, Dale Harris wrote: > Thanks for the idea, but doesn't appear to work. I've added the following > method to my app to disable the socks proxy host to no joy. > > private void disableSocksProxy() { > Properties sysprops = System.getProperties(); > sysprops.remove("socksProxyHost"); > sysprops.remove("socksProxyPort"); > sysprops.remove("java.net.socks.username"); > sysprops.remove("java.net.socks.password"); > } That only deletes the properties from "sysprops"; it does not delete the system properties themselves. I suggest you display the values of the properties to see if they are actually set. > The only way around my issue that I've found so far is to create a > SocketFactory for the TelnetClient to use. > > > Regards, > > Dale Harris > IT Support > > > -----Original Message----- > > From: James Carman [mailto:james@carmanconsulting.com] > Sent: Wednesday, 27 May 2009 21:08 > To: Commons Users List > Subject: Re: TelnetClient in common.net v2.0 > > On Wed, May 27, 2009 at 6:58 AM, James Carman > wrote: > > There are system properties you can set to "turn on" proxies for the > > Java networking classes. That's the default way that Socket would > > become proxy-aware. > > > > FYI: > > http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org