Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2FBB2DF2B for ; Tue, 9 Oct 2012 07:32:15 +0000 (UTC) Received: (qmail 15723 invoked by uid 500); 9 Oct 2012 07:32:13 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 15685 invoked by uid 500); 9 Oct 2012 07:32:12 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 15653 invoked by uid 99); 9 Oct 2012 07:32:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2012 07:32:11 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.212.179 as permitted sender) Received: from [209.85.212.179] (HELO mail-wi0-f179.google.com) (209.85.212.179) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2012 07:32:07 +0000 Received: by mail-wi0-f179.google.com with SMTP id hq7so3650324wib.2 for ; Tue, 09 Oct 2012 00:31:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=d6gB7j021CeWg082GyeviGDmrp3qq3ZoSRW5WKWTBjI=; b=mW+fqyt0fVwWuaE7PbcmUILUauG0BKmdHQDVsqm193QAg2tmdac+y77D+vWYuAqfaY FjTtdYgin6/1ksjsKhOz+HhDSFmeqrDeQTc8D2TlJMLaYxH1RtWBRuf8VtdSF8yfIgVn VPy00hcPbLcjzNPtXJPc7fwTtFXSpPbsW/rmV5ZqEugq6LEDGYrEtsf0ecaGCPywOjZ5 zLDiV77TDo4cO9QQhDJGbdGVmz4/ofTaLnvmwuyvQ/XYw+iNdDg1Plpt6Mhb6hjBeV3u xuszq8ZN6pYgcxhOC4ce4cWOOSYMUVOw7j7FTiYs6c7ox2K/c0+aTWhEmg0g6VaHX7Ve PP7g== Received: by 10.180.87.42 with SMTP id u10mr2431984wiz.0.1349767906680; Tue, 09 Oct 2012 00:31:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.18.210 with HTTP; Tue, 9 Oct 2012 00:31:26 -0700 (PDT) In-Reply-To: <1349431656180-5720605.post@n5.nabble.com> References: <1349431656180-5720605.post@n5.nabble.com> From: Claus Ibsen Date: Tue, 9 Oct 2012 09:31:26 +0200 Message-ID: Subject: Re: Validating each row in a csv file and skipping that row and continue to next To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi There is a bean validation component http://camel.apache.org/bean-validation.html 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: 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