#29907

You can configure your application to use proxy Java-generic way with the following code:

[language=java:3lf5d9c5]String host=”your.proxy.br”;
String port=”80″; // change it to your proxy port number

// older JDK approach
System.getProperties().setProperty(“proxySet”, “true”);
System.getProperties().setProperty(“proxyHost”, host);
System.getProperties().setProperty(“proxyPort”, port);

// newer JDK approach
System.getProperties().setProperty(“http.proxySet”, “true”);
System.getProperties().setProperty(“http.proxyHost”, host);
System.getProperties().setProperty(“http.proxyPort”, port);[/language:3lf5d9c5]

The similar can be achieved with a JVM command line parameters:

-Dhttp.proxySet=true -Dhttp.proxyPort= -Dhttp.proxyHost=