Solved

RMI & SERIALIZATION

Posted on 1997-04-17
1
236 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Android studio getdrawable(int) is deprecated 4 116
servlet example 17 51
String array comparison 4 38
going to wrong jsp page 2 33
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

856 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