I am polling for a file on FTP server using FTP adapter, it works fine in good times.
However if the FTP server is down how can I know about it, so that I can trigger another
BPEL process which can notify a administrator about this failure.
Create the Invoke activity call to the FTP Location inside a Scope. And put catchAll activity in that scope.
1. Write a fault-policies.xml file to retry the FTP server call for specified interval of time. Because fault policies is the first priority incase of exception.
2. Then in the case of retry failure make use "ora-rethrow-fault" action. Now the "CatchAll' block will be called. Inside CatchAll activity reply the failure of communication with FTP server to the caller.
either you can use retry and rethrow in your faultpolicies and in the catch block you can invoke your bpel process that notifies the user or You can notify the user in faultpolicies itself by using a custom java code