Click to See Complete Forum and Search --> : Sending objects over sockets.


Omer S.
February 14th, 1999, 04:58 AM
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.

Davender Pratap Singh
February 24th, 1999, 12:23 AM
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