Patent ID: 7289989

Claim:
A method of processing a request for a plurality of Web services comprising the steps of: receiving a request specifying at least two Web services; extracting an object pattern from the request; storing the object pattern from the request in a common memory; scanning the common memory with at least two watchers, wherein each watcher is assigned to a Web service and a rule for invoking an associated one of the at least two Web services; detecting that the object pattern matches the rule of one of the at least two watchers, wherein a first watcher having a rule matching the object pattern invokes an associated one of the at least two Web services, wherein the one of the at least two invoked Web services instructs the first watcher to modify the object pattern; modifying the object pattern by the first watcher according to instructions from the associated one of the at least two Web services; detecting by a second watcher that the modified object pattern matches the rule assigned to the second watcher; invoking by the second watcher the other one of the at least two Web services assigned to the second watcher; detecting a termination criterion by a termination watcher, wherein a rule within the termination watcher matches the pattern object; wherein the termination watcher returns the pattern object back to at least one servlet; and sending a response to the request by the at least one servlet.