Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » J2EE Interest »

Re: help on java sockets...

Pedro Barelli

2003-09-26

Replies:

Share the code. It is easier to understand what you mean.
I suspect you are assuming that once you put an object in a stream you
can change its value. Things don't work quite that way... Serialization
is optimized to transfer a given object only once...

Christopher Layno wrote:

> I am using Java sockets and object serializition (1.41_02).
> My experience was when I try to send
> the same object/instance several times,
> even though I set its instance variable(s) into different values,
> the receiver always gets the same value
> that was received first...This was resolved
> when I always create a new instance everytime
> I send data through the socket.
>
> Is there any explanation to this...?
>
>
>
>
>
>
>
> --
> "If you were waiting for the opportuned time, that was it."
>
> - Capt. Jack Sparrow (Johnny Depp); Pirates of the Caribbean
>
> ===========================================================================
>
> To unsubscribe, send email to listserv@(protected)
> body
> of the message "signoff J2EE-INTEREST". For general help, send email to
> listserv@(protected)".
>

===========================================================================
To unsubscribe, send email to listserv@(protected)
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@(protected)".


©2008 junlu.com - Jax Systems, LLC, U.S.A.