Method and apparatus for transferring context information on web server
First Claim
1. A method of transferring context information from a message to a web server containing a context pool, the method comprising:
- receiving a message by the web server, wherein the web server is a SOAP server and the message is a SOAP request, and the web server further comprises a response component for receiving a SOAP request and a request component for sending a SOAP request;
obtaining context information from said message;
generating a unique identifier according to a thread for processing the message;
associating the context information with the generated unique identifier, wherein it is judged whether the context information is valid after obtaining context information and in response to the context information being valid, storing the context information and the associated unique identifier;
storing the context information and the associated unique identifier in the context pool of the web server correlatively, wherein the storing the context information and the associated unique identifier is performed in the response component;
generating an identifier according to a thread that is executed currently in the web server if the web server is required to obtain the context information;
extracting the context information for which the associated unique identifier is matched with the generated identifier from the context pool, wherein the extracting the context information for which the associated unique identifier is matched with the generated identifier is performed in the request component;
checking the context pool periodically for inactive threads by determining whether each thread associated with each piece of stored context information in the context pool exists; and
removing from the context pool each piece of the stored context information where no associated threads exist.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for transferring context information on a web server that contains a context pool. The method includes: in response to the web server receiving a message, obtaining context information from the message, generating a unique identifier according to a thread for processing the message, associating the context information with the generated unique identifier, and storing the context information and the associated unique identifier in context pool of web server correlatively. In response to a web server obtaining the context information, generating an identifier according to a thread that is executed currently in the web server, and extracting context information for which an associated unique identifier is matched with the generated identifier from the context pool.
25 Citations
14 Claims
-
1. A method of transferring context information from a message to a web server containing a context pool, the method comprising:
-
receiving a message by the web server, wherein the web server is a SOAP server and the message is a SOAP request, and the web server further comprises a response component for receiving a SOAP request and a request component for sending a SOAP request; obtaining context information from said message; generating a unique identifier according to a thread for processing the message; associating the context information with the generated unique identifier, wherein it is judged whether the context information is valid after obtaining context information and in response to the context information being valid, storing the context information and the associated unique identifier; storing the context information and the associated unique identifier in the context pool of the web server correlatively, wherein the storing the context information and the associated unique identifier is performed in the response component; generating an identifier according to a thread that is executed currently in the web server if the web server is required to obtain the context information; extracting the context information for which the associated unique identifier is matched with the generated identifier from the context pool, wherein the extracting the context information for which the associated unique identifier is matched with the generated identifier is performed in the request component; checking the context pool periodically for inactive threads by determining whether each thread associated with each piece of stored context information in the context pool exists; and removing from the context pool each piece of the stored context information where no associated threads exist. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. An apparatus for transferring context information on a web server that contains a context pool, said apparatus comprising:
-
a module for obtaining context information from a message received at a web server, wherein the web server is SOAP server and the message is SOAP request, and the web server further comprises;
a response component for receiving SOAP request and a request component for sending SOAP request;a module for generating a unique identifier according to a thread for processing the message; a module for associating the context information with the generated unique identifier; a module for judging whether the context information is valid; a module for storing the context information and the associated unique identifier in context pool of web server correlatively, wherein the module for storing the context information and the associated unique identifier in the context pool is located in the response component; a module for generating an identifier according to a thread that is executed currently in web server; a module for extracting context information for which the associated unique identifier is matched with the generated identifier from the context pool, wherein the module for extracting context information for which the associated unique identifier is matched with the generated identifier is located in the request component; and a module for checking the context pool periodically and for removing, from the context pool, stored context information for inactive threads based on a determination that each thread associated with a piece of stored context information in the context pool does not exist. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
Specification