RMI and old implementation class

Posted on 2004-11-20
Medium Priority
Last Modified: 2010-03-31
Suppose that I have an old class who was built for a local program. I don’t have the source code and I don’t want to make any changes on this class.
Is it possible to use this class in a RMI application, and how?
Any example or url?
Question by:thanassis
1 Comment

Accepted Solution

lhankins earned 400 total points
ID: 12636085
It should be possible, you would follow these steps :

1) Implement your own RMI Server which wraps the main operations of the legacy class
2) In the implementation of your  RMI Server, simply delegate incoming method calls to the legacy class

Depending on the interface of the legacy class, you may have to jump through a few hoops to avoid any non-serializable parameters (in RMI, any parameter passed from client to server must be Serilizable).



Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month16 days, 7 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question