2 Replies Latest reply on Dec 2, 2008 3:59 PM by peiguo

    how to get native connection

    peiguo

      Hi,

      I have a need to access some outside web services through jboss, and I am behind a firewall, so my jboss has to access that web service through https proxy.

      I knew in general how to set system properties such as https.proxyHost, proxyPort and nonProxyHosts etc. But this way, the setting will bencome global. Is there a way for me to get the actual https connection underneath the web service, so that I can configure that connection and that connection alone to use proxy?

      Thanks in advance!
      Peter

        • 1. Re: how to get native connection
          jaikiran

          Not exactly sure, but since these properties are JVM system level properties, i don't think its possible to set it at an application level

          • 2. Re: how to get native connection
            peiguo

            Yes, you can set the proxy at system level, by for example setting system, properties.

            However, please take a look at javadoc (version 1.5 at least) for java.net.URL, look for an overloaded method - URL.openConnetion(Proxy), you will come to realize that you can set proxy at per connection/URL base.

            That's why I am looking for a way to get the native connection that JBoss for ws. Well, web service at its bottom is nothing more than a http connection.


            "jaikiran" wrote:
            Not exactly sure, but since these properties are JVM system level properties, i don't think its possible to set it at an application level