Solved

RMI & SERIALIZATION

Posted on 1997-04-17
1
245 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
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…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Suggested Courses

738 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