We only have to copy the properties file so will also add a filter on the file extension. If you want to move the files instead of copying, modify outbound-channel-adapter , add attribute delete-source-files with its value set to true. Inbound file adapter inbound-channel-adapter reads the property files from output folder.
The files are copied, encapsulated in form of Messages and sent to channel filesIn. The outbound file adapter listening on filesIn sends it to the outbound channel filesOut. I think that issue is with target directory. You're using "classpath:" prefix which can't be used to write files to, only to read from. Please let us know what you're trying to achieve by copying file for this path and we will try to come up with another approach to do same. File instance. There's no support for reading from multiple directories with one adapter, last I checked Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 10 years, 11 months ago. Active 10 years, 11 months ago. Viewed 4k times. Andrew White Ikthiander Ikthiander 3, 8 8 gold badges 34 34 silver badges 54 54 bronze badges.
Add a comment. Active Oldest Votes. Unfortunately this approach won't work. Classloader will not see updated file after application started.
0コメント