Patent ID: 8081647

Claim:
A system for using annotations to enable buffering of requests to web services, comprising: a computer, including a plurality of web services executing thereon, wherein when each of the web services is deployed to the system, the system registers a listener to receive requests, using a private uniform resource identifier (URI) associated with that web service, and wherein the web service includes at least one annotation associated therewith indicating that requests directed to particular classes or methods of that web service are to be buffered, and wherein the at least one annotation optionally specifies a name of a destination queue that will be used to store buffered requests directed to that web service, prior to delivery of those buffered requests to that web service, and retry parameters to be used with the buffered requests; one or more Java Message Service (JMS) queues which can be used to buffer the requests to the web service; and a message driven bean (MDB), which is set up according to the annotation included with a web service when the web service is deployed to the system, and wherein instances of the MDB are subsequently created by the system when the system receives requests directed to the web service, and which are thereafter used to supply the requests from the queue to the web service, when the web service is available; wherein, when the system subsequently receives a particular request, if the destination queue is named within the annotation, the system places the request into the named queue to be buffered for subsequent retrieval by the MDB, for processing by the plurality of web services, and if the destination queue is not named within the annotation, the system places the request into a default queue to be buffered for subsequent retrieval by the MDB, for processing by the plurality of web services, and wherein the MDB retrieves the request from the queue, parses the contents of the request to determine registered listeners and private URI properties in the request, and then forwards the request to an appropriate web service that is registered with that URI.