Thanks @Ib it works in a better clean way with your method !
2013/2/26 lb [via Camel] <ml-node+s465427n5728196...@n5.nabble.com> > You may use the following syntax: .unmarshall().bindy(BindyType.Csv,Your > Class.class) > > Bear in mind that the current implementation does scan the package of the > viventi class thus you should not have any other bindy-annotated class in > the same root package. > > > On Monday, February 25, 2013, jeff wrote: > > > Thanks @Claus for the help, but it don't works too... > > > > I have found a solution which consist to retrieve the bean from the > context > > from the routebuilder : > > > > spring bean xml : > > <bean id="cSVLineFormatAED" > class="com.myapp...package.CSVLineFormatAED"> > > > > > > @CsvRecord(separator = ";" , crlf = "UNIX") > > public class CSVLineFormatAED extends BindyCsvDataFormat { > > public CSVLineFormatAED() { > > super("com.myapp....package"); > > } > > } > > > > public class BindyRoute extends RouteBuilder { > > > > @Override > > public void configure() throws Exception { > > > > // Context Camel > > SpringCamelContext camelCtx = (SpringCamelContext) > > getContext(); > > > > // Context Spring > > ApplicationContext springCtx = > > camelCtx.getApplicationContext(); > > > > BindyCsvDataFormat camelDataFormatAED = > > (BindyCsvDataFormat) springCtx > > .getBean("cSVLineFormatAED"); > > > > from("file:C:/input/test.csv") > > .split(body().tokenize("\n")) > > .unmarshal(camelDataFormatAED) > > .to("mock:test").end(); > > ... > > } > > > > Hope it will be helpfull for other developper ! > > > > > > > > > > > > -- > > View this message in context: > > > http://camel.465427.n5.nabble.com/A-little-problem-with-annotation-CsvRecord-tp5728109p5728119.html > > Sent from the Camel - Users mailing list archive at Nabble.com. > > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://camel.465427.n5.nabble.com/A-little-problem-with-annotation-CsvRecord-tp5728109p5728196.html > To unsubscribe from A little problem with annotation @CsvRecord, click > here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5728109&code=amZsZWJlc2NvbnRAZ21haWwuY29tfDU3MjgxMDl8LTE2MjgyOTI4OTg=> > . > NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://camel.465427.n5.nabble.com/A-little-problem-with-annotation-CsvRecord-tp5728109p5728205.html Sent from the Camel - Users mailing list archive at Nabble.com.