Feb 10th, 2012, 11:10 PM
Is batch the right approach??
when the task triggers I need to to read some data from HBase(Database) do some processing like consolidating the rows and then write them to a file in CSV form.
Could someone please let me know if using batch is the right approach , and should I be using flatfilewriter
This file will then have to be ftp'ed to some other system.
Feb 13th, 2012, 09:05 AM
Yes this is a typical use case for Spring batch. To whatever extent possible you should try to use in-built readers & writers provided by Spring batch.
For FTP you can use Spring integration as it comes with in-built FTP gateway
Feb 13th, 2012, 02:27 PM
Thanks a lot.
One more question and any suggestion that you can give, can I the ftp as part of the job or after the job is completed then write the file to a channel from where it can be ftp'ed .
Feb 13th, 2012, 06:56 PM
Needs to be after the file has been written. You can use inbound poller provided out of the box by Spring to poll a directory for files. Once a file is received it will be be FTP'ed using FTP outbound channel adaptor.