Patent ID: 7590138

Claim:
A method for routing channels in which messages are transmitted across a network from a source application to a destination application, said method comprising: activating, by a background task, a finite-state machine, wherein the messages comprise a first message in a transmission queue of the source application for subsequent transmission of the first message from the transmission queue across the network over a first channel of said channels to a local queue of the destination application; performing or not performing a channel routing action, by the activated finite-state machine, in dependence on: a channel event having caused the first channel to currently be staffed or stopped, a channel sender currently set for the first channel, and an event type characterizing the channel event as being normal or abnormal, wherein said channel routing action is a function of the channel event, the channel sender, and the event type; prior to said activating the finite-state machine: inserting a second message into an event queue such that the second message denotes the channel event, detecting the second message in the event queue, and responsive to said detecting, invoking the background task, wherein said detecting and said invoking are performed by a trigger monitor; putting an initiating message into an initiation queue in conjunction with said first message being in the transmission queue; monitoring the initiation queue, by the trigger monitor, to detect the initiating message in the initiation queue; and responsive to detection of the initiating message in the initiation queue by the trigger monitor, invoking the destination application by the trigger monitor.