Bypass a proxy server without modifying system properties

Hi all,

I'm developing an application that have to bypass a proxy server. I'm using the classes URL and URLConnection. I have been serching how to do this and found many examples showing it by setting the system properties, like in

System.setProperty("http.proxyHost", "xxxxxxxxx");

System.setProperty("http.proxyPort", "80").

But I think there is a problem. If I have two applications running on the same system and both of them set these properties with different values, for example trying to bypass different proxies, I'd have a conflict on the system.

Does anybody know whether there is another way to bypass the proxy server without modifying the system properties?

Thank you!

[729 byte] By [Free_Developera] at [2007-10-2 0:01:20]
# 1
All right, I have already the answer http://bdn.borland.com/article/0,1410,29783,00.htmlThanks.
Free_Developera at 2007-7-15 15:55:53 > top of Java-index,Security,Other Security APIs, Tools, and Issues...