wood burning stoves
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes a serializable problem. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "a serializable problem." Watch "a serializable problem." New topic

a serializable problem.

Bigwood Liu
Ranch Hand

Joined: Feb 26, 2003
Posts: 240
I am wondering how to use serielizable object. My question is this:
Since the server side don't know anything about the serializable object that received from a remote client, how can I use the methods in this object at server side?
I wrote some code, the server read a object from client, and use the object like this:
object.getInfo() , the compiler complained can't resolve symbol :getInfo(); then I tried to write a interface include this method at server side, and the same interface at the client side, but it still can't work.(of course it is a bad code )

Need your kindly help, thx
Bigwood Liu
Ranch Hand

Joined: Feb 26, 2003
Posts: 240
need help
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Please refrain from cross posting your questions.
Serializable objects need to be on both sides. Meaning they both need to know the object.
Are you using Serialization for the assignment?

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Bigwood Liu
Ranch Hand

Joined: Feb 26, 2003
Posts: 240
thank you ,Mark Spritzler
I am not intending to use serialization in the assignment.
just for practice
I agree. Here's the link: http://aspose.com/file-tools
subject: a serializable problem.
It's not a secret anymore!