File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a serializable problem.

 
Bigwood Liu
Ranch Hand
Posts: 240
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 240
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
need help
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bigwood Liu
Ranch Hand
Posts: 240
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you ,Mark Spritzler
I am not intending to use serialization in the assignment.
just for practice
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic