FTP in response to mail queue message
I'd like to initiate an FTP transfer after my mule instance receives a message to a POP3 mail message. We've had problems in the past with file transfers occurring while the file is being deposited in the folder, so we'd like to initiate file transfer after we know the file creation step is completed.
I'm looking for a way to wire up Mule to do it, as a standard behavior without custom code.
Here's the scenario. Process A writes a large file out to folder F, and when complete emails a POP3 account that is being monitored by mule. Mule then initiates the FTP transfer.
The only way I can think to do this is to write a custom component that is fired off by Mule, and then creates a temporary new instance of mule, and is configured one time to FTP transfer from the folder F. That mule instance is then destroyed on completion.
There's got to be a better way, and any suggestions would be very welcome!