niyasc
niyasc

Reputation: 4490

Global configuration of http proxy in camel

So far, I have learned to ways to set HTTP proxy with camel.

Upvotes: 2

Views: 1790

Answers (2)

Alessandro Da Rugna
Alessandro Da Rugna

Reputation: 4695

You should edit the setenv file of Karaf, located in bin/ folder under your JBoss Fuse installation. In that file, add the properties linked by Claus' answer to 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, those options will be added to Java command line by bin/fuse script.

bin/fuse script calls bin/karaf which imports such variable from bin/setenv.

Upvotes: 3

Claus Ibsen
Claus Ibsen

Reputation: 55535

You can configure the http proxy settings as JVM parameters. There is other SO questions about this such as: How do I set the proxy to be used by the JVM

Upvotes: 1

Related Questions