You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Ivan Vasilev <iv...@gmail.com> on 2013/02/06 13:23:30 UTC
using Camel behind proxy
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
Re: using Camel behind proxy
Posted by Ivan Vasilev <iv...@gmail.com>.
Thanks a lot Willem for your help!
Ivan
On Wed, Feb 6, 2013 at 5:15 PM, Willem jiang <wi...@gmail.com> wrote:
> 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
>
>
>
>
Re: using Camel behind proxy
Posted by Willem jiang <wi...@gmail.com>.
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