You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Tim C." <ti...@hotmail.com> on 2003/07/09 16:35:07 UTC

client side : proxy settings

Having searched the list I cannot see a posting resolving the problem of the 
proxy settings being cached. The following allows the setting of proxies:

    System.setProperty("proxySet", "true" );
    System.setProperty("http.proxyPort",8080);
    System.setProperty("http.proxyHost",wwcache.blah);

However the problem comes when these are wrong & the exception is caught and 
the correct proxy then tried and a second call made to the server then it 
fails again - presumably because of caching.

I have tried setting the network property in the code:

   Security.setProperty("networkaddress.cache.negative.ttl","0");

and on the command line -Dnetworkaddress.cache.negative.ttl=0

Any solutions?
Thanks
Tim

_________________________________________________________________
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger