|
-
February 14th, 1999, 05:58 AM
#1
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.
-
February 24th, 1999, 01:23 AM
#2
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|