6. Using the File Folder Listener Service : Installation and Configuration
 
Share this page                  
Installation and Configuration
The File Folder Listener Service is included with the installation of Integration Manager. A Windows service is registered with the name Actian File Folder Listener and must be started manually after configuration is complete.
To configure file listeners, you must update the file-folder-listener-listeners.yml file found in your installation path’s conf directory.
Default Path:
C:\ProgramData\Actian\IntegrationManager\conf\file-folder-listener-listeners.yml
Listener Properties:
Property
Default Value
Description
id
 
Identifier for the listener
name
 
Name of the listener
config-id
 
The configuration id to run
active
true
Whether or not the listener is active
delete-files
false
When set to false, files will be moved to a .backup directory after the job is submitted.
When set to true, files will be deleted from the system after the job is submitted.
auto-create-directories
false
Automatically creates any non-existent directories in the path of the directory specified
recursive
false
Searches for changes to files in all subdirectories
flatten-directories
false
Used in conjunction with recursive, removes any subdirectories from the path of file (just the file name remains)
directory
 
The directory to monitor
include-pattern
 
Includes files if the file name matches the regular expression pattern you specify in the space provided
exclude-pattern
 
Excludes files if the file name matches the regular expression pattern you specify in the space provided
incoming-message-name
msg1
The name of the djmessage object passed to the dataconnect process
Example file-folder-listener-listeners.yml configuration:
listeners:
  - id: listener1
    name: listener1name
    config-id: 10
    active: true
    delete-files: true
    auto-create-directories: false
    recursive: false
    flatten-directories: false
    directory: C:\Program Files\Actian\IntegrationManager\listener\1
    include-pattern: ^runme.txt
    exclude-pattern: ^skipme.txt
    incoming-message-name: msgTest
  - id: listener2
    name: listener2name
    config-id: 2
    active: true
    delete-files: false
    auto-create-directories: false
    recursive: false
    flatten-directories: false
    directory: C:\Program Files\Actian\IntegrationManager\listener\2
    include-pattern: ^runme.txt
    exclude-pattern: ^skipme.txt
    incoming-message-name: msgTest