• Post Reply Bookmark Topic Watch Topic
  • New Topic

Serialization issue

 
Keyur Govande
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...I've been trying to implement serialization. Here is the code:
Server Code and Message code:




Client code




What I am trying to do here is to change the value of Message.type and send it over to the client. but when I run this program, the client always prints the first value of m1 that is 3, 200. What could be wrong?

Thanks for the help!
 
Keyur Govande
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the answer. Its here:
http://java.sun.com/products/jdk/serialization/faq/#handle
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!