Is there any way, to tell Camel which model object to use during CSV unmarshalling?
Following szenario: my.package: -ModelObject1 (annotated with @CsvRecord) -ModelObject2 (annotated with @CsvRecord) Both model object are totally different. I'm trying to poll a folder which includes different formated csv files: public void configure() throws Exception { BindyCsvDataFormat dataFormat = new BindyCsvDataFormat("my.package"); from("file://data/csv?noop=true").split().body() .unmarshal(dataFormat).process(new Processor() { public void process(Exchange exchange) throws Exception { System.out.println(exchange.getIn()); } }); } Bindy fails with /java.lang.IllegalArgumentException: Some fields are missing (optional or mandatory), line : 1/ because Bindy tries to bind to the wrong model object. Is there any way, to tell Bindy to which model object Bindy should bind to? The only workaround a found, is to put each model object in an own package (what is not very handy I think). Thanks for any help. -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-component-more-than-one-model-object-per-package-tp4793295p4793295.html Sent from the Camel - Users mailing list archive at Nabble.com.