title: HTTP Proxy Setup For Java JVM
body: <p>Setting up an HTTP proxy for Java JVM 6.x isn't working for me; I'm hoping someone can spot what I'm missing.</p>
  
  <p>I have a Java application deployed on JBOSS 5.1.2 that makes several calls to external web services.  I'd like to be able to intercept these calls using a proxy: Fiddler version 4.4.8.0. </p>
  
  <p>After doing an <a href="https://stackoverflow.com/questions/10065863/how-can-i-view-the-https-calls-in-fiddler-when-using-jaxws">SO search</a> I added the following flags to my JBOSS VM parameters at startup: </p>
  
  <pre><code>-DproxySet=true -Dhttp.proxyHost=localhost -Dhttp.proxyPort=8888 -Dhttps.proxyHost=localhost -Dhttps.proxyPort=8888
  </code></pre>
  
  <p>I'm running JBOSS in IntelliJ 14.</p>
  
  <p>I can see traffic from the browser to the application if I start JBOSS, Fiddler, and open the UI in Chrome.  I do not see any calls from JBOSS to external services being intercepted.  I thought I would see all the calls from JBOSS to external services in addition to those from the browser to JBOSS.</p>
  
  <p>Update:</p>
  
  <p>I tried adding these to properties-service.xml per <a href="https://stackoverflow.com/questions/2183215/how-can-i-configure-the-http-proxy-for-a-web-service-client-running-in-jboss-4">this SO answer</a> - no joy. </p>
  
  <p>I'm running Spring 3, using Apache HttpClient as my web service client.  I'm going to look into configuring proxy just for it. </p>