There is not any one particular file that needs to be changed. What needs to
occur is that the code that sets the default Authenticator used by
HttpURLConnection needs to be setup in a manner similar to the following:

Authenticator.setDefault(new MyAuthenticator());

Any Java code that is loaded into that JVM will do. It only needs to be done
once, so a good place might be a static initializer or some other method
that gets invoked as part of initialization.


zul wrote:
> 
> Hi,
> 
> Just wandering the filename that need to be amended.
> 
> Thanks,
>   zul
> 
> 
> 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#a6450222
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to