IBM Support

DataPower FTP Poller keeping same file name in target directory as polling directory

Question & Answer


Question

I have a WebSphere DataPower FTP Poller that polls for certain types of files, for example, .ZIP files. I need to have the same file name kept when taken from the polling directory and put to the target directory. How would I accomplish this ?

Answer

Note: The information contained in this technote has been migrated to developerWorks Answers Q&A forum located here. Please bookmark the new location. This technote will be archived in 60 days.

When your FTP Poller is polling for files that have an Input File Match Pattern of . *(.zip$|.ZIP$), (for instance looking for all .zip files), and you want to keep the same file name in propagating to the target directory, this is best accomplished by specifying a dynamic back-end on the multi-protocol gateway web configure page and using a stylesheet. In using the stylesheet, you would assign your back-end value (which would include the file name) to the DataPower variable var://service/routing-url. The attached DataPower configuration, using an FTP poller associated to a multi-protocol gateway, is an example of how this can be accomplished.

sample ftp config propagating polling file name to target directory with same file name.zip

[{"Product":{"code":"SS9H2Y","label":"IBM DataPower Gateway"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General","Platform":[{"code":"PF009","label":"Firmware"}],"Version":"5.0.0;6.0.0;6.0.1;7.0.0","Edition":"Edition Independent","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
08 June 2021

UID

swg21329071