Re: Numbers of lines in a flat file

2013-05-15 Thread Baalu
thanks for responding... I was able to get it from header. thanks! -- View this message in context: http://camel.465427.n5.nabble.com/Numbers-of-lines-in-a-flat-file-tp5732455p5732625.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Numbers of lines in a flat file

2013-05-13 Thread Baalu
CamelSplitSize (or equivalent) is not part of headers. -- View this message in context: http://camel.465427.n5.nabble.com/Numbers-of-lines-in-a-flat-file-tp5732455p5732458.html Sent from the Camel - Users mailing list archive at Nabble.com.

Numbers of lines in a flat file

2013-05-13 Thread Baalu
Hello, I am trying to count the number of the lines in a flatfile, once I get that value I need to write it back to the flat file as part of the file footer. For now I did this: from("direct:fileLinecount").routeId("fileCount") .pollEnrich("file://C:/fil

Where to start with Unit testing

2013-03-12 Thread Baalu
Hello Guys, I am trying to write a unit test for my first camel route. Below is my camel route: I am updating the database using jdbc component. Also,can you guys tell me is the below route the right way to update the database? DataSource ds = this.getContext().getRegistry()

Re: Update database using Java DSL JPA

2013-03-07 Thread Baalu
Are you asking to do something like this: from("jpa1://Entity1") bean:beanName[?method=someMethod] .to("jpa1://Entity2") If possible can you tell me the actual flow... I have Entity1 and Entity2, I need to access Entity1, get a value of a column from Entity1 based on a criteria then take th

Re: Update database using Java DSL JPA

2013-03-05 Thread Baalu
I looked at your example and it used Camel 2.11, but we are using 2.10.3 where we dont have a hibernate component. We are using JPA component, is there any way we can use consumer.query or consumer.nativequery or a namedquery on it to update the database. What is the best way to update one column