File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes I/O and Streams and the fly likes Serialization issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Serialization issue" Watch "Serialization issue" New topic

Serialization issue

Keyur Govande

Joined: Mar 09, 2006
Posts: 2
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

Joined: Mar 09, 2006
Posts: 2
I found the answer. Its here:
I agree. Here's the link:
subject: Serialization issue
It's not a secret anymore!