Quantcast
Viewing all articles
Browse latest Browse all 5648

Is there a way to set a proxy using camel-rss component?

Hi,

I am using a camel-rss based route to poll from a rss... This works very
well on my local bus, but does not work on another one that is behind a
proxy.
When I encountered such a problem with camel-http, I used to set a proxy
that way (with the suited values):

if(hasProxy){
getContext().getProperties().put("http.proxyHost", proxyHost);
getContext().getProperties().put("http.proxyPort", proxyPort);

But this doesn't work for camel-rss, even though the route goes to http :

from("rss:http://www.telerama.fr/rss/services/podcast_cinema.xml.php?flux=CinemaPodcast痩=60").etc(...)

I kept getting a connection timeout error... looks like the http.proxHost is
only devoted to camel-http, and even though camel-rss might use camel-http,
it has its own definition for both thoses parameters, and thus ignoring
mines (only suppositions!)

So that the purpose of the question in my subject.. does anyone know of a
way to do that?
Or should I use camel-http and do the few camel-rss extra by myself?

Thanks in advance.

Viewing all articles
Browse latest Browse all 5648

Trending Articles