Global configuration of http proxy in camel -
so far, have learned ways set http proxy camel.
first 1 append proxy information destination uri
<to uri="http://sample.com?proxyauthhost=proxy.example.com&proxyport=8080"/>other approach setting proxy global
camelcontext<properties> <property key="http.proxyhost" value="proxy.example.com"/> <property key="http.proxyport" value="8080"/> </properties>other these approaches, there way can configure proxy globally that, don't have repeat procedure each
urior eachcamelcontext? example, if configure proxy in properties file, how can use it(other using property using{{key}}approach)?
you should edit setenv file of karaf, located in bin/ folder under jboss fuse installation. in file, add properties linked claus' answer extra_java_opts variable.
on linux edit bin/setenv
extra_java_opts="-dhttp.proxyhost=10.0.0.100 -dhttp.proxyport=8800" export extra_java_opts on windows edit bin/setenv.bat
set extra_java_opts=-dhttp.proxyhost=10.0.0.100 -dhttp.proxyport=8800 then start jboss fuse, options added java command line bin/fuse script.
bin/fuse script calls bin/karaf imports such variable bin/setenv.
Comments
Post a Comment