camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Validating each row in a csv file and skipping that row and continue to next
Date Tue, 09 Oct 2012 07:31:26 GMT

There is a bean validation component

On Fri, Oct 5, 2012 at 12:07 PM, Elezabeth <> wrote:
> Hi,
> I have a requirement as below:
> I have a csv to be read. I am reading the csv file using camel and converted
> to list of VOs . So I assume each row in the csv file is converted into a VO
> .. in my case it is OagVO.
> This part is working fine. But I need to add validation also to the csv
> records. Suppose I expect a not null value for a particular field value  and
> if it is coming as empty or null, then camel should skip reading that record
> and continue reading the next line and convert that into the OagVO.
> I searched many links . But all I could find is skipping the first line in
> the csv file and not any other lines...
> Any help would be appreciated..
> Thanks in Advance
> -----
> Thanks & Regards
> Elz
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
FuseSource is now part of Red Hat
Twitter: davsclaus
Author of Camel in Action:

View raw message