yes @Partha is right. i used the HttpEndpoints options
"httpClient.authenticationPreemptive=true" in my url and the download time
per xml reduced to 250-300ms.
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-HTTP-component-vs-Apache-HTTP-client-tp5735943p57
the time to download.
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-HTTP-component-vs-Apache-HTTP-client-tp5735943p5736197.html
Sent from the Camel - Users mailing list archive at Nabble.com.
HelperBean.java <http://paste.ubuntu.com/5899832/>
ObjectCreatoinProcessor.java <http://paste.ubuntu.com/5899836/>
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-HTTP-component-vs-Apache-HTTP-client-tp5735943p5736005.html
Sent from the Camel - Users
gt;.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.
context:
> http://camel.465427.n5.nabble.com/Camel-HTTP-component-vs-Apache-HTTP-client-tp5735943p5735995.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
my xml files are not more than 5kb and i don't want to cache them.
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-HTTP-component-vs-Apache-HTTP-client-tp5735943p5735995.html
Sent from the Camel - Users mailing list archive at Nabble.com.
("${body}"))
> .to("http4://dummyHost.com?" + npAuthenticationString)
> .convertBodyTo(Document.class)
> .bean(HelperBean.class, "setUrlETagMapping")
> .process(new ObjectCreationProcess(xmlToObjectMapping)
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.
ct to camel or not.
>
> Thanks
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-HTTP-component-vs-Apache-HTTP-client-tp5735943p5735960.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
porntat. we should decide whether we should port
our project to camel or not.
Thanks
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-HTTP-component-vs-Apache-HTTP-client-tp5735943p5735960.html
Sent from the Camel - Users mailing list archive at Nabble.com.
tch.stop();
>
>
> The StringBodyProcessor is simply to set the url in the exchange body.
> The ObjectCreationgProcess is simply to create a new Object of the
> downloaded xml.
>
> My producer template is in a recursive loop.
>
> and my resourceURI is looks lik
this message in context:
http://camel.465427.n5.nabble.com/Camel-HTTP-component-vs-Apache-HTTP-client-tp5735943p5735954.html
Sent from the Camel - Users mailing list archive at Nabble.com.
00-800 ms but if i used for same request using Apache HTTP client
> then it took 300-400 ms. Is it expected behavior or i misuse of camel's
> HTTP
> component?
> Any idea?
>
> Thanks in advance.
>
>
>
> --
> View this message in context:
> http://camel.46542
of camel's HTTP
component?
Any idea?
Thanks in advance.
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-HTTP-component-vs-Apache-HTTP-client-tp5735943.html
Sent from the Camel - Users mailing list archive at Nabble.com.
14 matches
Mail list logo