Hi You need to start the route from a timer / scheduler etc.
from timer to http to file On Thu, Mar 12, 2015 at 5:02 PM, H2SO4 <davidmoeb...@web.de> wrote: > Hi, > > I want to download a json file from a rest endpoint. But somehow I'm not > getting it how to write the source. > For the beginning it is enough if the json is written into a file. So I > tried the following: > > from("rest:get:http://my-homepage.com:8080/somepage/").to("file:data/outbox"); > > but all I get is an exception > > Exception in thread "main" java.lang.IllegalStateException: Cannot find > RestConsumerFactory in Registry or as a Component to use > > What is wrong? > Someone know? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/download-from-rest-endpoint-tp5764051.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/