Patent ID: 8429451

Claim:
A method of handling a message in a messaging system, the messaging system comprising a message source, a message receiver and a message service having a plurality of queues, wherein the message service is intermediate of the message source and message receiver, wherein a compensation component is established at the message source, the method comprising the steps of: transmitting a one way message, as part of a business transaction, from the message source, the transaction comprising a plurality of one way messages, receiving the message into and transmitting the message from, at least two of the plurality of queues of the message service in turn, using a processor, by: receiving the message at a first one of the plurality of queues of the message service, transmitting the message from the first one of the plurality of queues to a second one of the plurality of queues, and transmitting the message from the second one of the plurality of queues of the messaging service, receiving the message at the message receiver, processing the message at the message receiver, transmitting a communication from the message receiver, the communication indicating success or failure of the processing of the message, receiving the communication at the messaging service, performing, with a processor, a transaction confirmation for each queue of the first one and second one of the plurality of queues, in turn, and responsive to receiving an indication of a failure of part of the transaction when the communication indicated that processing of the one way message succeeded, causing compensation logic defined by the compensation component to execute.