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 2398BECB1 for ; Mon, 25 Feb 2013 17:16:19 +0000 (UTC) Received: (qmail 4338 invoked by uid 500); 25 Feb 2013 17:16:18 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 4304 invoked by uid 500); 25 Feb 2013 17:16:18 -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 4295 invoked by uid 99); 25 Feb 2013 17:16:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2013 17:16:18 +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 (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.210.174 as permitted sender) Received: from [209.85.210.174] (HELO mail-ia0-f174.google.com) (209.85.210.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2013 17:16:12 +0000 Received: by mail-ia0-f174.google.com with SMTP id u20so2609034iag.19 for ; Mon, 25 Feb 2013 09:15:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=DpCpvxILT25SC6r1OTaHfGLq7wKK/a+KW94nLilcpfU=; b=OzS/P8agvfFzDwLXC4ck9kY8GIz+Topmc6jAWRXYLsbIexu/VIOrlwvqiS1xAhua/t cJoBhsIdTvwKzqvepPbmgZacFEDELOOIsZVKAbSFgB8q8dHyclikVNyF/VqUS9e9snu9 sZ51fg1D6uNL6nE1TfZXOke+XGxtCwwZDq93n4PZNBMqAKdkTdcjQIMYif9hCgq2MJi3 SjASplH/hExxV52dthkAA/FCpFUUWthJt/CwRpR2drQqLSmPcxR6j1og5cjKIhne8xgB dV1v+6bSneyRwJMSCEGQTAUrPeX1bOl2fRxFNPX1i8jOJ6TeR1e5wfzo7iwBaxFD90gx 8xXw== X-Received: by 10.50.7.231 with SMTP id m7mr3990943iga.0.1361812551880; Mon, 25 Feb 2013 09:15:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.53.232 with HTTP; Mon, 25 Feb 2013 09:15:30 -0800 (PST) In-Reply-To: <1361809969721-5728109.post@n5.nabble.com> References: <1361809969721-5728109.post@n5.nabble.com> From: Claus Ibsen Date: Mon, 25 Feb 2013 18:15:30 +0100 Message-ID: Subject: Re: A little problem with annotation @CsvRecord To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi I think BindyCsvDataFormat you should specify the package name and not the FQN class name. On Mon, Feb 25, 2013 at 5:32 PM, jeff wrote: > Hey ! > > I am a newbie with this framework. I am designing a little > MAVEN/SPRING/CAMEL P.O.C. > > ( I hope I don't spam, I have already post by mail, put I am not really used > to nabble :) ) > By the way, I don't understand why spring tell me : > > The separator has not been defined in the annotation @CsvRecord or not > instantiated during initModel. must be specified > > I am using spring to initiate the prog : > > > com.mycomp.mediation.simpleExemple > > > My main class just do : > > new ClassPathXmlApplicationContext("META-INF/spring/SpringBeans.xml"); > > I have a : > > @CsvRecord(separator = ";" , crlf = "UNIX") > public class CSVLineFormatAED { > @DataField(pos = 1) > private String name = ""; > ... > } > > And a bindy route : > > public class BindyRoute extends RouteBuilder { > @Override > public void configure() throws Exception { > > BindyCsvDataFormat camelDataFormat = new BindyCsvDataFormat( > "com.mycomp.mediation.simpleExemple.CSVLineFormatAED"); > > > from("file:C:/input/test.csv") > .split(body().tokenize("\n")) > .unmarshal(camelDataFormat) > .bean(InportSimple.class) > .to("mock:test") > .end(); > } > } > > Is anyone has a solution ? > > Thanks ! > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/A-little-problem-with-annotation-CsvRecord-tp5728109.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