At 10:37 08.06.2001 -0400, you wrote:

>An alternative to adding a version number to each serialized
>LoggingEvent, and thus sending it for each event, is to think of
>SocketAppender as using a protocol with a higher version number. The
>difference is that the version number (which would still signify the
>format of whatever is sent over the connection) is only sent to the
>server when the connection is established. At connection startup the
>client sends protocol name + version number -- much as in HTTP.
>
>If the client appender was to send formatted logging entries as
>discussed recently, the protocol name would be different. This should
>make it a little bit easier for servers to support multiple different
>protocols. We still need to be careful with how LoggingEvent is
>modified, of course.
>
>BTW, isn't the class serialVersionUID already written as part of
>serialized objects?

Yes, but we can't use different values for the serialVersionUID in different class 
versions because otherwise the serialization mechanism complains about incompatible 
types even if we make sure that the new and old versions of the class are compatible. 
Cheers, Ceki

ps: See http://www.hta-bi.bfh.ch/~sevem/marco/school/advancedjava/descriptor.html



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to