CSV to database

2011-05-28 Thread sumatheja
Hi All, I have a requirement to read from csv and populate a table in database. Currently i'm able to read from the csv using camelbindy from("file:src/data?noop=true&delay=1") .unmarshal().bindy(BindyType.Csv,

Re: File Poller

2011-05-28 Thread sumatheja
Thanks so much Stephane... its working fine now -- View this message in context: http://camel.465427.n5.nabble.com/File-Poller-tp4435442p4435740.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: File Poller

2011-05-28 Thread Stéphane Deraco
Yes, the file component does polling by default. How do you run your application? If it is standalone (plain Java), after having started the camel context, you must make the Thread to sleep (otherwise the camel context initiates its shutdown). You can do that with, Thread.sleep after having start

Re: File Poller

2011-05-28 Thread sumatheja
You mean to say it does polling by default?? In my case the context is just shutting down without polling i tried delay option too but same result. -- View this message in context: http://camel.465427.n5.nabble.com/File-Poller-tp4435442p4435709.html Sent from the Camel - Users mailing lis

Re: File Poller

2011-05-28 Thread Stéphane Deraco
Hi Sumatheja, I think what you need is the "delay" option, not "consumer.delay". See the Consumer URI Options in http://camel.apache.org/file2.html : delay (default 500) : Milliseconds before the next poll of the file/directory Stéphane On Sat, May 28, 2011 at 9:12 PM, sumatheja wrote: > Hi T

Re: File Poller

2011-05-28 Thread sumatheja
Hi Tarreq, I'm directing the output to another end point everthing other than the polling part is working fine find the complete route below from("file:src/data?consumer.delay=1") .unmarshal().bindy(

Re: File Poller

2011-05-28 Thread Taariq Levack
I'm not familiar with that option, looks strange, but otherwise you have a consumer. Now to send the files either to another endpoint or process it. The "getting started" link given before should help you further. Also see http://camel.apache.org/file2.html Taariq On 28 May 2011, at 8:40 PM, su

Re: File Poller

2011-05-28 Thread sumatheja
Thanks for your reply... I went through the pdf... It says the same thing as i was trying earlier I'm using the following code from("file:src/data?consumer.delay=1") Do I need to add anything else to this endpoint to poll the directory or should I add some extra code. Thanks in advance

Re: File Poller

2011-05-28 Thread Marcelo Jabali
The following resources should give you what you need. http://camel.apache.org/getting-started.html http://www.manning.com/ibsen/Camel_ch01_update.pdf Hope this helps, -Marcelo On May 28, 2011, at 10:55 AM, sumatheja wrote: > I'm completely new to Apache camel... Please help me with an example

File Poller

2011-05-28 Thread sumatheja
I'm completely new to Apache camel... Please help me with an example for file polling I want to poll a local directory and do some processing I was unable to get much help from web Any help is much appreciated. Thanks in Advance -- View this message in context: http://camel.465427.n5

Re: Loop usage

2011-05-28 Thread Claus Ibsen
Hi Fell free to create a JIRA ticket for an improvement to the loop DSL so we can add an option to control if looping should be from - a copy of the input message - continue looping the same message http://camel.apache.org/support On Fri, May 27, 2011 at 11:58 PM, Greg McFall wrote: > I just tr