Camel does a fair degree of lazy loading. Try to measure performance
on a second or third invocation of the route, rather than the first
time.

Also, pease post the source your HelperBean and ObjectCreationProcess class.

Thanks,
Raúl.

On 21 Jul 2013, at 18:51, humayun0156 <[email protected]> wrote:

> i've used http4 component and test my code. but it still took 600-800 ms per
> request.
> my route looks like :
> from("direct:npGet")
>                .setHeader(Exchange.HTTP_METHOD, constant("GET"))
>                .setProperty("url", simple("${body}"))
>                .setHeader(Exchange.HTTP_URI, simple("${body}"))
>                .to("http4://dummyHost.com?" + npAuthenticationString)
>                .convertBodyTo(Document.class)
>                .bean(HelperBean.class, "setUrlETagMapping")
>                .process(new ObjectCreationProcess(xmlToObjectMapping));
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-HTTP-component-vs-Apache-HTTP-client-tp5735943p5735974.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to