Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
...
...
Confirmation the result of processing asynchronous messages
- when asynchronous message is processed (is in final status) then CleverBus can OpenHub can transmit information about result of processing - OK, FAILED or CANCEL final status.
- main interface is ConfirmationCallback, which has now two implementations:
- DefaultConfirmationCallback - default behaviour (rather suitable for tests), which only logs information about result
- DelegateConfirmationCallback - based upon source system it chooses properly implementation of ExternalSystemConfirmation interface, which as callback calls external system to confirm result.
Design of this functionality is so flexible because:
- not every system wants be informed about result of message processing
- every system can have specific requirements to confirmation (confirmation via web service, db call and so on)
- CleverBus OpenHub provides own defined WSDL asynchConfirmation-v1.0.wsdl with XSD asynchConfirmationOperations-v1.0.xsd to auto confirmation solution
Check obsolete messages in the queue
Message MSG2 must not be further processed because there exists the message MSG3, which is newer and changes the same entity with same "object ID".