wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "a serializable problem." Watch "a serializable problem." New topic
Author

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
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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?
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
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.
 
Similar Threads
Serialized object in a package.
question about jndi and EJBLocalHome interface
a serializable problem.
a serializable problem.
Serialzation is not working