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");

Reply via email to