Re: [jgroups-dev] Streamable
Bela Ban <[email protected]>
| Newsgroups | gmane.comp.java.javagroups.devel |
|---|---|
| Message-ID | <[email protected]> |
Newcomb, Michael-P57487 wrote:
> It is mainly an ease of use issue. We just upgraded from 2.8.1 and our
> 2.6.x code logged some of the messages and sends some down a TCP stream
> for distant clients of the group. The old Message (< 2.8.1) was
> Externalizable. If you made Streamable use DataInput and DataOutput, you
> could make Message also be Externalizable and just forward
> Externalizable.readExternal and Externalizable.writeExternal to
> Streamable.readFrom and Streamable.writeTo since ObjectInput and
> ObjectOutput extend from DataInput and DataOutput.
>
>
>
> We may change this in the future, but I figured that using DataInput and
> DataOutput is probably a good idea anyway.
>
>
>
> I saw that in Util as well, because I was just going to make a local mod
> myself to see if it was that easy, then saw all those. I checked some of
> the Util calls and I don't think they use any of the Stream methods, but
> I did not do an exhaustive search.
There's a Util.{write,read}Streamable()...
--
Bela Ban
Lead JGroups / Clustering Team
JBoss
------------------------------------------------------------------------------
_______________________________________________
Javagroups-development mailing list