file name filter usage in filepolling


Is it possible to specify more than one file name filter while polling the files from filepolling folder?

Eg: - My requirement is if the file matches the below criteria, it should get picked up.

PIX.xml , INV.xml

I have tried many options but it is not working.

Thanks and Regards,
Shriraksha A N

Hello Shri,

You can just place *.xml to pick up all the xml files by the file poller. In the processing service you can find the acual name of the file using getTransportInfo service. Then, branch on the filename and execute the required service.


Hi Sasanka,

Thanks for the reply.

I wanted to know whether it can be achieved by doing any kind of configuration while creating filepolling port using admin console. I want to pick up only those files which matches the file name filter criteria. As there are mutliple file name patterns needs to be used, is it possible to use any regular expression for this? I have tried with different possibilities but it didn’t work out. Please let me know if you have any idea on this.

Thanks and Regards,
Shriraksha A N


I think 2 file polling port needs to be created as compound conditions are not working as expected.

port 1 File Name Filter condition [a-zA-Z]PIX[a-zA-Z].zip
port 2 File Name Filter condition [a-zA-Z]INV[a-zA-Z].zip
can be used calling the same processing service.



you only need one listener with [PIX|INV].xml as filter.