System for integrating java servlets with asynchronous messages
First Claim
1. A system for asynchronous messaging between Java servlets and a servlet handler, comprising:
- a server including a servlet and a servlet response handler;
an HTTP interface for receiving requests from, and sending responses to an HTTP client; and
, wherein a request from a client allows the servlet to return certain response data immediately, and to set a response code to be used with subsequent responses.
2 Assignments
0 Petitions
Accused Products
Abstract
In a traditional application server that uses servlets, when a request is dispatched to a thread the service() method of the appropriate servlet is called. When the service( ) method returns the response is sent. This is sub-optimal in the case that an asynchronous event must occur before the response can be sent, because the thread running the servlet must block until the event occurs. The invention provides for asynchronous processing of such requests. In one embodiment, the invention provides an extension to the Servlet API which allows the service( ) method to return (and thus the thread to be freed) before the response is ready to be sent. Then when the asynchronous event later occurs the response may be completed and sent.
43 Citations
12 Claims
-
1. A system for asynchronous messaging between Java servlets and a servlet handler, comprising:
-
a server including a servlet and a servlet response handler;
an HTTP interface for receiving requests from, and sending responses to an HTTP client; and
,wherein a request from a client allows the servlet to return certain response data immediately, and to set a response code to be used with subsequent responses. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method for asynchronous messaging between Java servlets and a servlet handler, comprising the steps of:
-
receiving request from an HTTP client to access a servlet resource; and
,responding to said requests asynchronously, wherein a request from a client allows the servlet to return certain response data immediately, and to set a response code to be used with subsequent responses. - View Dependent Claims (8, 9, 10, 11, 12)
-
Specification