You can do some control on the how the http endpoint sending the pulling request[1] If you just want to pull the data only once, you can consider to define the route like this
from("direct:start").to("http://google.com").to("file:target/message"); Once you send the message to the direct:start, camel will send the pull request to google.com. You should be able to configure file name by checking out the file endpoint options here[2] [1]http://camel.apache.org/http.html#HTTP-Samplewithscheduledpoll [2]http://camel.apache.org/file2.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Sunday, December 23, 2012 at 11:38 PM, Meriem wrote: > Hi, > It was effectively the bad version of camel-http.jar, thanks for the reply. > I switched to camel-http-2.9.0.jar and it worked. > But it continue to pull data from the http endpoint (www.google.com > (http://www.google.com)) > endlessly, so with this code : > > from("http://google.com").to("file:target/messages"); > > it continue to create files where it puts the result of the request. > > How can I tell it to pull the data only one time, and how to specify a name > for the created file; in fact, the created file's name is something like: > ID-MERIEM-54264-1356275725253-0-5. > > Thank you very much for your help. > Best, > Meriem. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Problem-with-HTTP-endpoint-tp5724441p5724565.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).