camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
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
Hi

There is a bean validation component
http://camel.apache.org/bean-validation.html


On Fri, Oct 5, 2012 at 12:07 PM, Elezabeth <Elezabeth.gregory@ibsplc.com> 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: http://camel.465427.n5.nabble.com/Validating-each-row-in-a-csv-file-and-skipping-that-row-and-continue-to-next-tp5720605.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message