i have implemented a file inbound channel adapter to poll a directory. where we can receive multiple files, from some other inbound process...out of them we have to pick some unique files to merge. we have implemented a custom filter to perform this job(to get unique files and pass it to the Service activator).
On service Activator we will receive files one by one. and we don't have any clue actually how many files we have receive to merge on current poll from filter class, may be there is only one file or more than one files.
my question is how we can ensure that, how many no of files we are going to receive at Service activator class. So that we can perform our business based on the number of files we have received from Filter class?
Is there any way to let Service activator class know...how many files it will received on that poll from filter class?