until-successful
is an asynchronous
processor. It does not return response from service call.
Success
or failure
are defined as:
- If the child message processor throws an exception, this is a failure.
- If the child message processor does not return a message (e.g. is a one-way endpoint), this is a success.
- If a 'failure expression' (see below) has been configured, the return message is evaluated against this expression to determine failure or not.
- Otherwise:
- If the child message processor returns a message that contains an exception payload, this is a failure.
- If the child message processor returns a message that does not contain an exception payload, this is a success.