Reputation: 790
I just need to configure Wildfly 8 to use an external HTTP Proxy in order to connect to the Internet; can you tell me where and how to specify proxy address and port?
I'm running Wildfly as a service on Windows 7.
Thank you very much for your help!
Upvotes: 0
Views: 13829
Reputation: 1801
We had to go through a few more steps using Wildfly 10:
```
<resource-root path="resteasy-client-3.0.19.Final.jar">
<filter>
<exclude-set>
<path name="META-INF/services"/>
</exclude-set>
</filter>
</resource-root>
```
```
public class ProxifiedClientBuilder extends ResteasyClientBuilder {
public ProxifiedClientBuilder() {
super();
URLConnectionEngine urlConnectionEngine = new URLConnectionEngine();
httpEngine(urlConnectionEngine);
}
}
```
```
<system-properties>
<property name="javax.ws.rs.client.ClientBuilder" value="be.buyway.util.ProxifiedClientBuilder"/>
</system-properties>
```
Hope this helps someone else.
Upvotes: 0
Reputation: 105
I did it by adding
set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.proxyHost=MY_PROXY_HOST -Dhttp.proxyPort=MY_PROXY_PORT -Dhttp.proxyUser=MY_LOGIN -Dhttp.proxyPassword=MY_PASSWORD"
into file bin/standalone.conf.bat (I'm using wildfly in the standalone mode) In other words, Wildfly uses system (JVM) proxy settings well.
Upvotes: 2