Router validating identity problem


Accordingly the invention provides a method for validating that a client's request has been routed to an appropriate server hosting a specific stateful web service instance in a system comprising a plurality of stateful web service instances, the specific stateful web service instance having required state data for processing the client's request, the method comprising: receiving a request for processing by a web service instance; extracting any identity data from the request, the identity data uniquely identifying the required state data and the identity of the target server that hosts the state data; determining whether the target server identity matches that of the server that has received the client's request; and responsive to a negative determination, reporting a routing failure.

The identity data may reference the id of a cluster of servers, each one of which has access to the required state data.

In one embodiment, if it is determined that the target server identity does not match that of the server that has received the client's request, the request is re-routed to a server that hosts the required state data.

Other options are however possible, for example an error message may be returned to the requesting client.

A request is received for processing by a web service instance. The identity data uniquely identifies the required state data and the identity of the target server that hosts that state data.

It is then determined whether the target server identity matches that of the server that has received the client's request and responsive to a negative determination, a routing failure is reported.receiving a request from a client application, the request to be processed by a stateful web service instance, the stateful web service instance having state data, the state data used by the stateful web service instance to process the request;providing the reference to the stateful web service instance in response to the request, wherein the reference encapsulates an identity of the second server or of the cluster associated with the second server.9.

So if a web service request is delivered to a target that is capable of processing the request, then the request is deemed to have been delivered correctly.