Browse Prior Art Database

A method to invoke a method over process substituted for Java RMI interface

IP.com Disclosure Number: IPCOM000014238D
Original Publication Date: 2000-May-01
Included in the Prior Art Database: 2003-Jun-19

Publishing Venue

IBM

Abstract

Disclosed is a method for invoking a method over process within a machine substitued for *Java RMI(Remote Method Invocation)Interface, Java RMI is packaged in JDK1.1. The structure to realize the method: The server substituted for Java RMI server is called "service" hereafter. the program requests a method invocation is called "requester" hereafter. the parameters such as "Class name", "Method name", "Input object" and "Output object" are saved on "service table" stored in a shared memory shown at Figure 1. the communication between a service and a requester is done by using a mutex object of a service, a event object for a request notification, a event object for a request acceptance, a event object for a request completion and a service table. The procedure to invoke a method over process: 1. Get the mutex object of the service get the mutex object of the service for the exclusive access 2. Save the parameters for the method to be invoked save "Class name", "Method name" and "Input object" on the service table 3. Notify the service of a new request get the event object for request, notify the service of a new request arised and wait for the request acceptance 4. Notify the requester of the request acceptance 5. Load the parameters 6. Invoke the method requested invoke the requested method with the input object at the service 7. Save the result object save the result object on the service table 8. Notify the requester of the request completion 9. Load the result object load the result object on the service table 10. Release the mutex object of the service release the mutex object of the service for a new request