5 Replies Latest reply on Nov 14, 2008 2:36 AM by Ron Sigal

    Using proxy for localhost

    Maciej Prochniak Newbie

      Hello,
      I have a question about http proxies with jboss remoting.
      I am enabling http proxy (running on my localhost) by setting system properties:

      -DproxySet=true -Dhttp.proxyHost=localhost -Dhttp.proxyPort=8081
      

      It works fine, unless I want to access localhost/127.0.0.1 - then the proxy is not used.
       InvokerLocator clientLocator = new InvokerLocator("http://<host>:8080/sth");
       Client client = new Client(clientLocator);
       client.connect();
       client.invoke("stupidTestString");
      
      

      When I replace 'host' with 'localhost' or '127.0.0.1' - the proxy is not used. If I replace it with 'ws' - which has entry in my etc/hosts file pointing to 127.0.0.1 - the proxy is used...

      Is it desired behaviour - and if so, can I change it (i.e. so that connection to 'localhost' uses proxy)?

      thx