Hi from http will continuously and forever do a HTTP GET on that url. Is that really what you want to do?
If you want to do only 1 call or 1 call per minute or something, then start with a timer route, and then do a to http. On Fri, Feb 21, 2014 at 10:30 PM, Pete Carapetyan <[email protected]> wrote: > Question below, but first: > > A batch processing delimited-file-to-avro-file component is up for anyone's > review and comments now at > https://bitbucket.org/datafundamentals/camel-avro-etl/overview > > It's my first venture into camel, either as a user or developer, so I'm > guessing I broke a bunch of camel conventions that I don't know about yet. > Comments and suggestions especially welcome, especially if I did things in > a non-camel way. > > But, the most recent bug that I was not able to fix is when I do an > http://call rather than a file:// call. The from(http://... > runs [Producer].process(exchange) about 30 times before it quits. Still > works, just too many times. > > This works perfectly: > > from("file://src/test/resources?noop=true&fileName=testFile1.csv") > .to("avroetl:abar?outputFilePath=target/output/testResults > &delimiter=',' > &exceptionOnBadData=false > &className=FooBaby > &namespace=org.foo.bar") > .to("mock:result"); > > This also runs perfectly, but 30x > > from("http://docs.datafundamentals.com/avro_from_delimited/testFile1.csv") > > .to("avroetl:abar?outputFilePath=target/output/testResults > &delimiter=',' > > &exceptionOnBadData=false > &className=FooBaby > &namespace=org.foo.bar") > .to("mock:result"); -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io
