The "pattern" here I would see
http://camel.apache.org/message.html
http://camel.apache.org/message-channel.html
http://camel.apache.org/message-endpoint.html
http://camel.apache.org/message-router.html
basically http://camel.apache.org/content-based-router.html
http://camel.apache.org/polling-cons
Reading files: http://camel.apache.org/file2.html
- react on "empty dir": sendEmptyMessageWhenIdle
Sending mails: http://camel.apache.org/mail.html
SCP: http://camel.apache.org/jsch.html
So just thinking loud:
from("file:mydirectory?sendEmptyMessageWhenIdle=true")
.choice()
.when( si