So far, I have learned to ways to set HTTP proxy with camel.
First one is to append proxy information with destination URI
<to uri="http://sample.com?proxyAuthHost=proxy.example.com&proxyPort=8080"/>
Other approach is setting proxy global to
CamelContext
<properties> <property key="http.proxyHost" value="proxy.example.com"/> <property key="http.proxyPort" value="8080"/> </properties>
Other than these approaches, is there any way by which I can configure proxy globally so that, I don't have repeat this procedure for each
URI
or for eachCamelContext
? For example, if I configure proxy in a properties file, how can I use it(Other than using property using{{key}}
approach)?