Making TIBCO ActiveMatrix Adapter for Files (Unix/Win) (FA) poll different source folders with a common parent hierarchy.

Making TIBCO ActiveMatrix Adapter for Files (Unix/Win) (FA) poll different source folders with a common parent hierarchy.

book

Article ID: KB0085087

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Files for Unix and Windows -
Not Applicable -

Description

Description:
Description:

============

TIBCO ActiveMatrix Adapter for Files (Unix/Win) (FA) publisher usually scans the only specified folder provided during Design time. This solution provides some possible work arounds in case an FA publisher has to poll different source folders (for input files) which are placed under the same hierarchy parent folder.


Issue/Introduction

Making TIBCO ActiveMatrix Adapter for Files (Unix/Win) (FA) poll different source folders with a common parent hierarchy.

Resolution

Any of the following solutions can be used for TIBCO ActiveMatrix Adapter for Files (Unix/Win) (FA) to poll different source folders for files.

1). Triggering Message to change the directory at runtime.

  a). RV Triggering Message - You can keep sending a trigger message with a different input directory path using RV. For example:

        Rendezvous message:
        {
        RVMSG_STRING 6 inputDirectory  "/home"
        }

   b). JMS Triggering Message - You can keep sending trigger messages with different input directory paths using JMS. For example, JMS message: "inputDirectory=reader/input". This feature is available in FA 6.0.0 and greater. 

2). Use a pre-processing script.

 The pre-processing script should have a script which would transfer all input files from different input sub-directories to a common directory. The file adapter would then scan that common directory for the file. All input sub-directories must be mentioned in the pre-processing script.

Additional Information

Refer to TIBCO ActiveMatrix Adapter for Files (Unix/Win) (FA) documentation for more details.