AEM Watched Folder Utilities
This is an AEM Watched Folder Processor (OSGi bundle) that will take files dropped into the watched folder and POST them to a REST service. This project also contains a mock Spring Boot client that demonstrates how the receiving end of this connection can be implemented.
To install the Watched Folder Poster, download the latest watched-folder-poster-0.0.1-SNAPSHOT.jar from the
this project's GitHub Package repository and then copy it into the install directory of the AEM instance.
This should cause AEM to install the bundle. It should be present and active in the AEM Bundles console.
After the bundle is installed successfully, it should be available for use when configuring a watched folder.
-
Follow instructions found in Adobe “Create or Configure a watched folder” documentation.
-
Configure the Watched Folder with the following things:
-
Pathset to the location where the watched folder resides (e.g.C:\WatchedFolder) -
Process Files Usingshould be set toService. -
Service Nameshould have thecom._4point.aem.watchedfolder.core.WatchedFolderRestPosterentry selected. -
Output File Patterncan be set to whatever you want the output filenames to be (e.gResult_%F_%Y%M%D_%h%m%s_%R.txt).
-
-
Configure endpoint to point to a REST Service
-
Select the Advanced tab
-
Scroll to bottom and click Add button under Custom Properties
-
Enter endpoint in first field and select string for type and enter URL (e.g. http://machine:port/getDocument) to the REST service. For example, this might be
http://localhost:8090/getDocumentif the REST server is running locally on port 8090 . See below for reference:
-

