REST best practices

2013-07-12 Thread humayun0156
i'm new in camel. i want to design a camel application which sync two servers. server1: this server send a message to camel application. this message has a HTTP link which we should download and this downloaded message has another multiple HTTP link which we should download by HTTP GET request and

Re: REST best practices

2013-07-17 Thread humayun0156
Yes, i've solved my problem. -- View this message in context: http://camel.465427.n5.nabble.com/REST-best-practices-tp5735585p5735785.html Sent from the Camel - Users mailing list archive at Nabble.com.

Work with Exchange.HTTP_QUERY

2013-07-18 Thread humayun0156
Hi, I've an url with query parameters which is dynamically generated. i don't know how many parameters there are. i want to hit the url and get the body. say my url looks like : http://myhost.com?name=xxx&id=yyy it needs basic authentication. so i request Object object = producerTemplate.requestBod

Re: Work with Exchange.HTTP_QUERY

2013-07-18 Thread humayun0156
Thanks it works. -- View this message in context: http://camel.465427.n5.nabble.com/Work-with-Exchange-HTTP-QUERY-tp5735839p5735842.html Sent from the Camel - Users mailing list archive at Nabble.com.

Measure elapsed time of specific process

2013-07-19 Thread humayun0156
Hi, i want to compare time of a specific process. so after google search i found the link http://cmoulliard.blogspot.com/2011/02/measure-elapsed-time-with-camel.html but i need more specific which @Gregor mention in c

Camel HTTP component vs. Apache HTTP client

2013-07-20 Thread humayun0156
Hi, currently i'm working on a project which needs to download a lots of XML by HTTP request. when i use camel's HTTP component it took to download per request 600-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

Re: Camel HTTP component vs. Apache HTTP client

2013-07-20 Thread humayun0156
from("direct:npGet") .setHeader(Exchange.HTTP_METHOD, constant("GET")) .setProperty("url", simple("${body}")) .recipientList(simple("${body}?" + npAuthenticationString)) .convertBodyTo(Document.class) .bean(HelperBean.c

Re: Camel HTTP component vs. Apache HTTP client

2013-07-21 Thread humayun0156
Here is my Apache HTTP client version to download a URL. all three files are here Resource.java DefaultHTTPClient.java XMLEntityParser Performance issue is very imporntat. we should decid

Re: Camel HTTP component vs. Apache HTTP client

2013-07-21 Thread humayun0156
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, sim

Re: Camel HTTP component vs. Apache HTTP client

2013-07-21 Thread humayun0156
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.

Re: Camel HTTP component vs. Apache HTTP client

2013-07-22 Thread humayun0156
HelperBean.java ObjectCreatoinProcessor.java -- 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 mailing list a

HTTP component URL character endoding

2013-07-24 Thread humayun0156
Hi, I've used to get a URL using HTTP component. My route looks like: from("direct:epGet") .setHeader(Exchange.HTTP_METHOD, constant("GET")) .setProperty("url", simple("${body}")) .setHeader(Exchange.HTTP_CHARACTER_ENCODING, constant("UTF-8"))

Re: Camel HTTP component vs. Apache HTTP client

2013-07-24 Thread humayun0156
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-tp5735943p5736209.html S

Render JSP page using Jetty Component

2013-07-26 Thread humayun0156
Hi, is it possible to render a jsp page using jetty component? Say i've route like this from("jetty://http://0.0.0.0:8081/users";) .process(new MyProcessor()); now if i hit this url and i want to render a jsp page. is it possible? Thanks -Humayun -- View this message in context: http://ca

Re: Render JSP page using Jetty Component

2013-07-27 Thread humayun0156
Hi Claus, Thanks for your replay. To do this is there any document or example? Thanks -Humayun -- View this message in context: http://camel.465427.n5.nabble.com/Render-JSP-page-using-Jetty-Component-tp5736308p5736327.html Sent from the Camel - Users mailing list archive at Nabble.com.