How to Make Outgoing HTTP Requests from JBoss via Internal Proxy Server
Issue
- We have an internal proxy to the internet, and we want to define a service in ESB to invoke a public web service outside, is there anything we need to do in order to access that outside web service?
- Our tomcat app can be configured to connect to a website to gather information, but the app cannot be configured with a proxy setting.
- JBoss machine is behind a Windows NTLM authenticating proxy, where a war file is communicating with Microsoft Azure to upload blobs (i.e., the outside world). How can all http/https traffic generated from any war applications running in the JBoss container use the JBoss proxy settings? Also, using CNTLM, which is a proxy that allows to communicate through an NTLM Windows proxy server from a non-Windows environment, the proxy runs on localhost:port. Set the following JBoss system properties as follows:
http.nonProxyHosts=localhost
http.proxyHost=localhost
http.proxyPort=8888
https.nonProxyHosts=localhost
https.proxyHost=localhost
https.proxyPort=8888
But that does not work either; the http request continues to fail.
Environment
-
JBoss Enterprise Application Platform (EAP)
- 5.x
- 4.x
- 6.x
- 7.x
-
JBoss Enterprise SOA Platform (SOA-P)
- 5.x
-
Tomcat
- Most Java applications
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
