Hi Sateesh,
If you want your service to zip all the files present at a moment and name it as “index.xml” then you do not need multithreading. As in multithreading is enabled and lets say it is set to 2 then first thread will try to zip all the files and the second thread will also try to do the same and which is not possible and does not make any sense to achieve that so in your case only one thread is sufficient.
In another scenario, lets say you have 100 files in the folder and you have set multithread to 100 then each thread will pick one file zip it and do the rest as per the code but in that case file name can not be the same.
So what i feel from your requirement is you want to zip all the files present at a moment and name should only be "index.xml"and send it via SFTP, in that case multithreading is not required or not possible.
#Integration-Server-and-ESB#webMethods