I am new to camel too, but maybe this can give you ideas.

public class RequestHandler extends RouteBuilder {
    @Override
    public void configure() throws Exception {
        from("timer:myTimer?delay=1000&period=5000)
            .setHeader(Exchange.HTTP_BASE_URI, "something")
            .to("http://newserver/proxy?...)
            .to("http://oldserver?...);

        from("timer:myTimer?delay=1000&period=5000)
            .setHeader(Exchange.HTTP_BASE_URI, "something")
            .to("http://newserver/proxy/x/y/z?...)
            .to("http://oldserver/x/y/z?...);
    }}; 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Simple-HTTP-proxy-tp5723322p5723323.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to