I have a fs-listener setup for a service, but when one of my custom actions throws an ActionProcessException, the file is moved to the post-directory, not the error-directory. Is this expected behavior? How can I get the file to move to the error directory?
The file is sent to the post-directory once the gateway is finished with it and it has been passed to the service for processing. If you want to move it to the error-directory based on exception in your-action chain, that is custom code that you are going to have to write.