Solved

RMI & SERIALIZATION

Posted on 1997-04-17
1
242 Views
Last Modified: 2012-06-27
I would like to send Image using RMI. The problem is
that Image is an abstract class and it does not implement
Serializable.
How can I do ?
0
Comment
Question by:SunMan
1 Comment
 

Accepted Solution

by:
Kaj earned 100 total points
ID: 1219620
One way is to inherit the Image class, and say that it
implements Serializable. Remember that Image is abstract
and that you have to implement the abstract methods.

So here it is:

public class myImageClass extends Image implements java.io.Serializable
{
..
..
}

(You doesn't have to implement (can't implement) anything
from java.io.Serializable, just say that your class implements it)

...I haven't tried this on Image class, but on others.

Kaj

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ejb example issues 3 52
pagenation logic how it is working in my code 1 70
Java: The Public Class Main 4 45
Need Help! Getting a syntax error and don't understand why 3 38
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
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 …

756 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