Patent ID: 7453812

Claim:
A method for detecting and correcting publish-subscribe looping in a messaging network, wherein said messaging network comprises a plurality of nodes; wherein said messaging network further comprises a plurality of communication paths located between said plurality of nodes; said method comprising the steps of: sending a first message through said messaging network, from a first node to a second node; said second node extracting a list of identification codes attached to said first message; wherein an identification code uniquely defines a specific node; wherein said list of identification codes provides information about all participating nodes that said first message has gone through; wherein a participating node is a node that interacts with said list of identification codes, and whose identification code format is according to said list of identification codes; said second node determining whether or not the identification code corresponding to said second node is in said list of identification codes; in the case that said identification code corresponding to said second node is in said list of identification codes, said second node discarding said first message; in the case that said identification code corresponding to said second node is not in said list of identification codes, said second node adding said identification code corresponding to said second node to said list of identification codes, and said second node transmitting said first message to next one or more nodes in said messaging network; wherein two or more of said plurality of nodes are aggregated into a broker cooperative aggregated node; wherein said broker cooperative aggregated node has an internal mechanism for preventing publications looping within said broker cooperative aggregated node; wherein said broker cooperative aggregated node has a unique identification code; a third node within said broker cooperative aggregated node receiving a second message from a fourth node; said third node discarding said second message, only if said fourth node is not within said broker cooperative aggregated node, and the identification code of said third node is in a list of identification codes attached to said second message; said third node sending said second message to a fifth node; and said third node adding said identification code of said broker cooperative aggregated node to said list of identification codes attached to said second message, only if said fifth node is not within said broker cooperative aggregated node.