Creating proxies for distributed beans and event objects
First Claim
1. In a distributed object oriented programming environment, a mechanism to provide access to a server object in a first domain containing domain-specific logic for remote method invocations and state information notifications, comprising:
- a first proxy located in the first domain having middleware-specific logic to transmit and receive method invocations and state information notifications over the distributed environment, and an interface to interact with the server object as a local client program;
a second proxy located in a remote domain with a client program, the second proxy having middleware-specific logic to transmit method invocations and receive state information notifications over the distributed environment, and having an interface to interact with the client program as a local server object, means to instantiate a proxy object in the second proxy for an instance of state information notification received from the server object through the first proxy and the middleware, said proxy object identifying the second proxy as source of the instance of state information notification; and
means to transmit the proxy object to the client program.
1 Assignment
0 Petitions
Accused Products
Abstract
The invention provides a mechanism for distributing objects from a object oriented framework that permits method invocation and state information notification, such as event notification in a JavaBeans software component model. A code generation tool generates code from an existing server object that contains only application domain specific logic, to support deployment of the server object on a remote machine in a distributed application. The generated code includes a proxy class to reside locally with a client program that might invoke methods on the server object or receive notification of state information (events) from the server object, and a proxy class to be remotely deployed with the server object. The proxies created provide all the middleware specific logics. More importantly, the proxy on the client side contains all of the public methods, properties and event interfaces of the server object, so that a client program using this proxy can invoke the server object'"'"'s methods and register to receive notification of state information on the proxy as if it were interacting locally with the server object. A proxy on the server side communicates the client program'"'"'s method invocations and registrations to receive event notifications to the server object as if this proxy were a local client. When an event notification is issued by the server object, it is received by the proxy on the client side which transmits the notification through the middleware of the distributed application to the proxy on the client side. The proxy on the client side overrides the identification of the source of the notification, substituting itself, to receive any requests for data on the state information from the client program, but then delegates such requests to the object containing the state information to be fulfilled.
248 Citations
6 Claims
-
1. In a distributed object oriented programming environment, a mechanism to provide access to a server object in a first domain containing domain-specific logic for remote method invocations and state information notifications, comprising:
-
a first proxy located in the first domain having middleware-specific logic to transmit and receive method invocations and state information notifications over the distributed environment, and an interface to interact with the server object as a local client program;
a second proxy located in a remote domain with a client program, the second proxy having middleware-specific logic to transmit method invocations and receive state information notifications over the distributed environment, and having an interface to interact with the client program as a local server object, means to instantiate a proxy object in the second proxy for an instance of state information notification received from the server object through the first proxy and the middleware, said proxy object identifying the second proxy as source of the instance of state information notification; and
means to transmit the proxy object to the client program. - View Dependent Claims (2, 3)
-
-
4. A code generation tool for generating proxy classes from a domains-specific server object for remote method invocation on the server object and communication of state information from the server object over a distributed object oriented application, the code generation tool being adapted to generate:
-
an event proxy for each item of state information communicable by the server object;
a first proxy for deployment with the server object and adapted to provide a communication interface for method invocations from remote clients on the server object and for state information communications from the server object to communications middleware in the distributed object oriented application; and
a second proxy for deployment with a client program remotely from the server object, and adapted to;
(a) provide a communications interface for method invocations on remote servers from the client program to the communications middleware, (b) instantiate an event proxy object from the event proxy for each item of state information communicated from the server object through the first proxy, and (c) communicating the event proxy object to the client program. - View Dependent Claims (5, 6)
-
Specification