Component self-deactivation while client holds a returned reference
First Claim
1. In a computer device having a main memory, a method of enhancing scalability of server applications, the method being implemented at least in part by the computer device, the method comprising:
- returning a reference to a client responsive to receiving a request for creation of an application component;
executing the application component under control of an operating service, the application component having a state and function code for performing work responsive to method invocations from the client;
providing an interface for the operating service to receive an indication from the application component that the work is complete;
maintaining the state in the main memory between the method invocations of the function code by the client in the absence of the indication from the application component that the work is complete; and
while the client that requested creation of the application component retains the returned reference, destroying the state of the application component in response to the indication from the application component to the operating service at the provided interface that the work is complete.
1 Assignment
0 Petitions
Accused Products
Abstract
A component-based framework includes system services and component integration interfaces that provide a run-time environment for component-based server application in which server application components have control over the duration of their state independent of client action. The framework provides functions that a server application component calls to indicate its work for a client is complete, and its state is to be destroyed. On the component'"'"'s return from the client'"'"'s method call, the framework destroys the component'"'"'s state thus releasing any server computer resources held by the component. This allows the server application components to be programmed so as to minimize the duration that their state remains in memory consuming server computer resources, and which enhances scalability of the server application.
88 Citations
20 Claims
-
1. In a computer device having a main memory, a method of enhancing scalability of server applications, the method being implemented at least in part by the computer device, the method comprising:
-
returning a reference to a client responsive to receiving a request for creation of an application component; executing the application component under control of an operating service, the application component having a state and function code for performing work responsive to method invocations from the client; providing an interface for the operating service to receive an indication from the application component that the work is complete; maintaining the state in the main memory between the method invocations of the function code by the client in the absence of the indication from the application component that the work is complete; and while the client that requested creation of the application component retains the returned reference, destroying the state of the application component in response to the indication from the application component to the operating service at the provided interface that the work is complete. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. In a computer device, a computer operating environment for executing scalable, component-based server applications, comprising:
-
a run-time service for executing an application component in a process, the application component having a state and implementing a set of functions; an instance creation service operative, responsive to a request of a client, to return a reference to the application component through the run-time service to the client, whereby the client calls functions of the application component indirectly through the run-time service using the reference to initiate work by the application component; and the run-time service being operative, responsive to an indication from the application component that work is complete, to destroy the application component'"'"'s state upon returning from a call by the client, wherein the run-time service destroys the application component'"'"'s state while the client maintains the reference returned to the application component. - View Dependent Claims (9, 10, 11, 12, 13, 14, 15)
-
-
16. One or more tangible computer-readable media comprising computer executable instructions comprising:
-
code responsive to a request from a client program to create an application component for returning to the client program a reference through a system service to the application component; code responsive to a call from the client program using the reference for initiating processing of work by the application component, the application component producing a processing state during processing the work; code for receiving an indication from the application component that processing by the application component of the work is complete; and code for, while the client program retains the reference, destroying the processing state of the application component responsive to the indication from the application component that processing by the application component of the work is complete. - View Dependent Claims (17, 18, 19, 20)
-
Specification