camel-twitter is leveraging the twitter4j. Here the instruction of setting the proxy from twitter4j FAQ[1].
You can either to use system properties(-Dtwitter4j.http.proxyHost, -Dtwitter4j.http.proxyPort) or twitter4j.properties. http.proxyHost=your.proxy.host http.proxyPort=8080 twitter4j.properties can to be located in the root of your app's classpath, in WEB-INF/ directory, or in the process's default directory. [1]http://twitter4j.org/en/faq.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Wednesday, February 6, 2013 at 8:23 PM, Ivan Vasilev wrote: > Hi Guys, > > I have to use Camel for downloading Twitter messages and mails from Google > mail. I have already created that application that uses Camel Twitter > component and it works perfectly but from machines that are connected > directly to the Internet. > I have to make it work from machines that communicate with Twitter not > directly but via proxy. > For Maven and Gradle we do this by modifying their configuration files. For > example for Maven we modify the file <MAVEN_HOME>/conf/settings.xml by > adding <proxy> element properly formatted. > > So my question is: Is there some configuration file in Camel that we should > modify so that make it using our proxy server when downloading messages > from Twitter and how to use it? > If not - is there some other way to do this task? > > Thanks, > Ivan