Hi again,
in this case start your
servlet container using these flags.
What is your environment? Are you using eclipse? Using
tomcat?
Anyway. You may just as well alter your code:
Just put the following static initializer block in your thread class (or any class that is loaded before calling the service).
static {
System.setProperty("https.proxyHost", "IPgoesHere");
System.setProperty("https.proxyPort", "PortGoesHere");
System.setProperty("http.proxyHost", "IPgoesHere");
System.setProperty("http.proxyPort", "PortGoesHere");
}
I recommend starting the JVM using the -D options. Then you don't have to change your code.