The only problem I see is that I'm working with an XML file where I send in properties to an already coded httpclient app, the HTTP servicemix component. So how does one tell the component or the JVM to use creditials for an authenticated proxy. It's easy enough to tell the JVM to use a proxy server, but I don't see how to tell it a usrname and password to use when that proxy server requires them. Again, from code this is easy, but what happens when you need the servicemix http component to use it?
laz wrote: > > Check out http://floatingsun.net/articles/java-proxy.html for information > about accessing an authenticated proxy within Java. I have had success > using the technique described as "Java 2 Native Support". > > > zul wrote: >> >> Hi, >> >> I was just wandering if your http proxy uses a username and password to >> provide authentication (because I didn't see the properties to set those >> items in your config) ? >> >> Thanks, >> zul >> >> >> Steven wrote: >>> >>> >>> I had the same problem with the rss-binding example. If you're behind a >>> firewall, there is little to no information on how to configure >>> ServiceMix examples to work in this situation. I had a brain fart this >>> morning and remembered reading a web page somewhere that talked about >>> setting httpProxy properties on the command line of the JVM. I found >>> the following URL: >>> >>> http://developerlife.com/lessons/jvmfirewalltunelling/default.htm >>> >>> So then I moodified the BAT file in the bin directory to include the >>> proxy properties: >>> >>> set DEFAULT_JAVA_OPTS=-server -Xmx512M >>> -Dderby.system.home="%SERVICEMIX_HOME%\var" >>> -Dderby.storage.fileSyncTransactionLog=true >>> -Dcom.sun.management.jmxremote -Dhttp.proxyHost=(my proxy host) >>> -Dhttp.proxyPort=3(my proxy port) >>> >>> >>> That fixed it and the rss-binding example works flawlessly now. I hope >>> this works for you too. >>> >>> >>> >>> >>> zul wrote: >>>> >>>> Hi, >>>> >>>> It seems that running the http-binding example behind a http proxy >>>> server have a connection time-out problem. Where do I set the http >>>> proxy properties (such as proxyhost, proxyport, user, password) for >>>> connecting to the external server ("http://64.124.140.30:9090/soap") >>>> and what is the properties name or is it set (have to hardcode) at the >>>> sending server program file ? >>>> >>>> Thankx. >>>> >>>> Regards, >>>> Zul >>>> >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/Http-Binding-Example-Running-Behind-a-HTTP-Proxy-server-tf2270077.html#a6433336 Sent from the ServiceMix - User mailing list archive at Nabble.com.
