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 <jflebesc...@gmail.com> 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 :
>
>         <camelContext id="camel" 
> xmlns="http://camel.apache.org/schema/spring";>
>                 <package>com.mycomp.mediation.simpleExemple</package>
>         </camelContext>
>
> 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: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to