Advanced Configuration : Using 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 the File Folder Listener to connect with your Integration Manager stack, you must update the file-folder-listener.properties 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
actian.im.use-https
 
Whether HTTPs is enabled for Integration Manager (true/false)
actian.im.host
127.0.0.1
Integration Manager Host
actian.im.port
8080
Integration Manager Port
actian.im.client-id
 
Client Id to use for the File Folder Listener. By default, integration manager registers a job-invoker client ID that can be configured by setting this property: ID
actian.im.client-secret
 
Client secret to use for the File Folder Listener. By default, Integration Manager registers a job-invoker client secret that can be configured by setting this property: actian.im.client-secret=4fca678b-4071-498d-a7bf-49d9b735dd52
actian.im.user.name
 
The username the File Folder Listener should submit jobs as
actian.im.user.id
 
The user ID the File Folder Listener should submit jobs as
actian.im.user.account-id
 
The user account ID the File Folder Listener should submit jobs as
actian.im.user.is-admin
 
Whether the user the File Folder Listener should submit jobs as is an admin (true/false)
Example file-folder-listener.properties configuration:
spring.profiles.active=listeners
camel.springboot.auto-startup=true
camel.springboot.main-run-controller=true
actian.im.host=127.0.0.1
actian.im.port=8080
actian.im.use-https=false
actian.im.client-id=file-folder-listener
actian.im.client-secret=afa40ec4-26b1-493e-be71-6a7661d8e474
actian.im.user.name=admin
actian.im.user.id=1
actian.im.user.account-id=1
actian.im.user.is-admin=True
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