Sending objects over sockets.
Hi there,
I want to send an object containing an integer and a Vector (which holds in it other objects I defined) from my server application to a client.
I implemented the Serializable Interfaces for all of these objects and I use InputObjectStream & OutputObjectStream to send and receive from the sockets.
How ever something goes wrong there.
Question : Theoreticaly, should this work or do I have to use things like RMI to read & write objects when doing it over the network ?
Thanks,
Omer S.
Re: Sending objects over sockets.
Hye,
Theretically, this does work and you have to try and try cos' it will. Check your code again cos' it worked for me.
RMI is definitely an easier approach, give it a shot cos' it's dead easy!
Anyways, what went wrong? Did you downcast the object correctly?
Answer....
Long Live Java..
davender aka JaVaFLow