>> I need to process a text file (.txt). So @CsvRecord works for both .txt and >> .csv files ?
Whenever you talk about processing CSV file and don't mention Stream [1] component, a unicorn dies. :) CsvDataFormat csv = new CsvDataFormat(); csv.setDelimiter("|"); // Record represented as List<String> goes to the 'seda:recordQueue' from("stream:file?fileName=/tmp/mycsv.txt").unmarshal(csv).to("seda:recordQueue"); Unfortunately Stream component works only for streams of lines. As far as I know it cannot be used to consume stream which records are separated with some other token. Best regards. [1] http://camel.apache.org/stream.html -- Henryk Konsek http://henryk-konsek.blogspot.com