camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] Created: (CAMEL-2293) support to take the proxy configuration from camel context instead of using the SystemProperties
Date Wed, 16 Dec 2009 08:43:52 GMT
support to take the proxy configuration from camel context instead of using the SystemProperties
------------------------------------------------------------------------------------------------

                 Key: CAMEL-2293
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2293
             Project: Apache Camel
          Issue Type: Improvement
            Reporter: Willem Jiang
            Assignee: Willem Jiang
             Fix For: 2.2.0


As CAMEL-2286 issue shows , we need to avoid the side effects of using the SystemProperties.
For use who want to configure proxy from out side can consider to set the CamelContext properties
like this
Java DSL :
{code}
 context.getProperties().put("http.proxyHost", "172.168.18.9");
 context.getProperties().put("http.proxyPort" "8080");
{code}
Spring XML
{code}
   <camelContext>
       <properties>
           <property key="http.proxyHost" value="172.168.18.9"/>
           <property key="http.proxyPort" value="8080"/>
      </properties>
   </camelContext>

{code}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message