How to setup dynamic directory for file poling from SFTP/FTP server location in SwitchYard ?

Solution Verified - Updated -

Issue

  • It is required to poll files from SFTP server directory using SwitchYard FTP binding. The directory structure would look something like the following.
/Downloads
          --ABC
              --request
              --response
          --DEF
              --request
              --response
          --XYZ
              --request
              --response
  • The requirement is to only consume file from request sub-folders (as shown above) and not from response sub-folders. i.e. the to enable polling files from remote FTP server only from a filtered list of directory/sub-directory where the filtering of directory/sub-directory name would be based on a user defined pattern.
  • Is it possible to use wildcard directory structure something like /Downloads/*/request (where * means any folder like ABC,DEF,XYZ) in FTP binding to poll file? How can it be configured in switchyard.xml file to match the requirement?

Environment

  • Red Hat JBoss Fuse Service Works (FSW)
    • 6.0.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content