[ 
https://issues.apache.org/jira/browse/QPID-5004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13713668#comment-13713668
 ] 

venkata yerrapothu commented on QPID-5004:
------------------------------------------

I am using the code from the below URL.
http://www.windowsazure.com/en-us/develop/net/how-to-guides/service-bus-amqp/

Everything works perfect If I have direct internet connection.

We are running into issues when running the same behind proxy/firewall.  

We are setting the proxy information this way. Please let me know if you need 
further information.


public void setProxy() {
    if (isUseHTTPProxy()) {
        // HTTP/HTTPS Proxy
        System.setProperty("http.proxyHost", getHTTPHost());
        System.setProperty("http.proxyPort", getHTTPPort());
        System.setProperty("https.proxyHost", getHTTPHost());
        System.setProperty("https.proxyPort", getHTTPPort());
        if (isUseHTTPAuth()) {
            String encoded = new String(Base64.encodeBase64((getHTTPUsername() 
+ ":" + getHTTPPassword()).getBytes()));
            con.setRequestProperty("Proxy-Authorization", "Basic " + encoded);
            Authenticator.setDefault(new ProxyAuth(getHTTPUsername(), 
getHTTPPassword()));
        }
    }
    if (isUseSOCKSProxy()) {
        // SOCKS Proxy
        System.setProperty("socksProxyHost", getSOCKSHost());
        System.setProperty("socksProxyPort", getSOCKSPort());
        if (isUseSOCKSAuth()) {
            System.setProperty("java.net.socks.username", getSOCKSUsername());
            System.setProperty("java.net.socks.password", getSOCKSPassword());
            Authenticator.setDefault(new ProxyAuth(getSOCKSUsername(), 
getSOCKSPassword()));
        }
    }
}




                
> AMQP queue client functionality is not working behind a HTTP proxy.
> -------------------------------------------------------------------
>
>                 Key: QPID-5004
>                 URL: https://issues.apache.org/jira/browse/QPID-5004
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 0.22
>         Environment: SUN and IBM JVM's  version 6 and 7 as well.
>            Reporter: venkata yerrapothu
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to