Charles,
I think the CSV file is transformed into a Java List object, which might
be the reason why you see the [ ] in there when printing the message body.
Gert
cmoulliard wrote:
Hi,
Why the CSVDataFormat add those characters from and after a CSV line '[' ']'
?
ex of body message displaying those characters.
[[1, bank1, 10, 20, sale], [2, bank2, 10, 5, sale], [3, bank3, 1000, 2000,
buy], ...
Remark : the file parsed using CSVDataformat is placed as a message in a
queue.
from("file:///c:/temp/test?noop=true")
.unmarshal().csv()
.to("test-jms:queue:test.queue");
May I suggest you to avoid the generation of such characters because those
tags must be remove during the process to map CSV line content to a POJO !
Is it possible to have CSV annotations (like it is possible in the ETL
example with XML file) in order to map the content of a CSV line to a POJO ?
regards,
Charles