Solved

RMI & SERIALIZATION

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now