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

    Using proxy for localhost

    Maciej Prochniak Newbie

      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/ - then the proxy is not used.
       InvokerLocator clientLocator = new InvokerLocator("http://<host>:8080/sth");
       Client client = new Client(clientLocator);

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

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