Calling shell script from Camel

2011-09-12 Thread jeevan.koteshwara
Hi, I have a requirement, where I need to call a shell script (for zipping and unzipping files with associated passwords if any) from the route. I have chosen exec component to do so. I have seen exec:java or exec:perl to execute respective java or perl files/scripts. Is there any direct way

Reading multiple files at a time

2011-08-30 Thread jeevan.koteshwara
Hi, I am trying read multiple files from a directory at a time within my camel route. E.g. from(src).bean(abc.class).to(dest) In the above route, source is a directory which would contain 2-3 files in it. If I run this route, then camel will process one file at a time and will route it to

Re: Split large file into small files

2011-08-15 Thread jeevan.koteshwara
Thanks a lot Clause. Within the borders of my requirement the first approach (which you mentioned above) looks very much implementable. Thanks and Regards, Jeevan Mithyantha. -- View this message in context:

Re: Split large file into small files

2011-08-13 Thread jeevan.koteshwara
Hi Christian, to be give you better picture, my requirement goes like this. I need to transfer a fixed length record file to a destination Meanwhile, my route is responsible for transforming into required format (say to CSV or to XML). Now, the input file may be too big. It may

Re: Split large file into small files

2011-08-12 Thread jeevan.koteshwara
Hi Claus, one more quwstion here. I am splitting my messages using custom iterator. But, I am seeing once the route is finished (i.e. when a file routed to destination), messages are getting overwrited in it. Say, my starting message will be A,B,C. I split them into some chunks say

Re: Split large file into small files

2011-08-12 Thread jeevan.koteshwara
Hi, After splitting the messages, I am transforming them into different format and sending them to a single file. So, right now, after transforming, data is not sppending to the destination file (instead its over writing). You suggested to append them. As I am using a custom iterator and my

Re: Split large file into small files

2011-08-12 Thread jeevan.koteshwara
Hi Claus, are you suggesting something like below.. from(src).split().method(splitbean which returns an custom Iterator).streaming().to(file:...?fileExist=Append); Is that the correct approach? -- View this message in context:

Re: Split large file into small files

2011-08-09 Thread jeevan.koteshwara
Christian, thanks for the response. I have few doubts based on my requirement. I am trying to develop a custom splitter, a kind of bean, which would handle splitting based on number of lines in the input file (requirement is to split a single input file into multiple output files

Re: Split large file into small files

2011-08-09 Thread jeevan.koteshwara
Thanks Calus. Now, I got a picture how to handle the split according to my requirement. As you suggested, I should use a custom Iterator, something like below one. http://www.ecreate.co.uk/pages/inputStreamIterator.php -- View this message in context: