RE: First time create SFTP File and then Append to same in loop.

2016-09-01 Thread Goyal, Arpit
Message- From: souciance [mailto:souciance.eqdam.ras...@gmail.com] Sent: Thursday, September 1, 2016 1:52 AM To: users@camel.apache.org Subject: Re: First time create SFTP File and then Append to same in loop. Why don't you have append as Claus suggested but include a bean at the end o

Re: First time create SFTP File and then Append to same in loop.

2016-09-01 Thread souciance
ng for some header where I can toggle the value of 'fileExists'. > > > > Can I change end point configuration using some custom bean? Please > help. > > > > Regards, > > Arpit. > > > > -- > Claus Ibsen > - > http://davsclaus.com @davsclaus >

Re: First time create SFTP File and then Append to same in loop.

2016-09-01 Thread Claus Ibsen
Claus Ibsen [mailto:claus.ib...@gmail.com] > Sent: Wednesday, August 31, 2016 12:35 AM > To: users@camel.apache.org > Subject: Re: First time create SFTP File and then Append to same in loop. > > Can you not just use fileExists=Append always so the data is always > appended if th

RE: First time create SFTP File and then Append to same in loop.

2016-08-31 Thread Goyal, Arpit
ND); Regards, Arpit. -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: Wednesday, August 31, 2016 12:35 AM To: users@camel.apache.org Subject: Re: First time create SFTP File and then Append to same in loop. Can you not just use fileExists=Append always so the data is al

Re: First time create SFTP File and then Append to same in loop.

2016-08-31 Thread Claus Ibsen
Can you not just use fileExists=Append always so the data is always appended if the file exists? On Wed, Aug 31, 2016 at 2:46 AM, Goyal, Arpit wrote: > Hi Colleagues, > > We have the following route: > > from("xxx:inbound").process(new > MyProcessor()).choice(when(header("record_count").isGreat

First time create SFTP File and then Append to same in loop.

2016-08-30 Thread Goyal, Arpit
Hi Colleagues, We have the following route: from("xxx:inbound").process(new MyProcessor()).choice(when(header("record_count").isGreaterThan(0)).to("sftp://xyx[?options]";).to("xxx:inbound").otherwise(new MyEndProcessor()) It is a simple loop condition using choice where one branch process data