This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 17249

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 - 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:
subject: a serializable problem.
Similar Threads
question about jndi and EJBLocalHome interface
a serializable problem.
a serializable problem.
Serialized object in a package.
Serialzation is not working