Can I make the classes implements Serializable?
Gligor721 opened this issue · 0 comments
Gligor721 commented
Hello to every one,
I have same problem so I need same help!I write a xbee gateway so I can received xbee packet from nodes and send via tcp to central server.I use apache mina for TCP server and client.My gateway is linux base and I create a class TCPMessage that have same int type of message and Object message(that will be the data from gateway to server).Type of message use to know what type is the object message so I can cast later.
Example i received RemoteXBeeDevice and I want to send to server by tcp but the problem is that RemoteXBeeDevice class not Serializable.How to solve this problem?
Thanks for all your help!!!