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.