Apache Directory Project - [MINA] RE: [jira] Closed: (DIRMINA-126) ByteBuffer.get/putObject()

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > November 2005 > [MINA] RE: [jira] Closed: (DIRMINA-126) ByteBuffer.get/putObject()





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [MINA] RE: [jira] Closed: (DIRMINA-126) ByteBuffer.get/putObject()
Jose Alberto Fernandez

2005-11-29, 7:45 am

Does this means that the client needs to use a different serialization
infrastructure than the one provided by the JDK?

It would be nice if a client using regular JDK APIs and hence encodings
could talk to a highly performant MINA server. This is particularly
important for small clients, RMI implementations and such.

Same for the pascalStrings are they compatible with what read/writeUTF
produces?

Jose Alberto

> From: Trustin Lee (JIRA) [mailto:jira-1oDqGaOF3Lkdnm+yROfE0A@public.gmane.org]
>=20
> [ http://issues.apache.org/jira/brows...-126?page=3Dall ]
>=20
> Trustin Lee closed DIRMINA-126:
> -------------------------------
>=20
> Fix Version: 0.9
> (was: 0.9.1)
> Resolution: Fixed
>=20
> I used ObjectInput/OutputStream to implement this feature.
> read/writeClassDescriptor() method is overridden to minimize the size

of
> the serialized data.
>=20
>=20
implementor's[vbcol=seagreen]
> life very easier. What we have to consider are the possible

performance
> hit and the size of the serialized data.
>=20
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the

administrators:
> http://issues.apache.org/jira/secur...nistrators.jspa
> -
> For more information on JIRA, see:
> http://www.atlassian.com/software/jira



Trustin Lee

2005-11-30, 2:45 am

Hi Jose,

2005/11/29, Jose Alberto Fernandez <jalberto-FQMVDHFwfny6lNtOUNzE6A@public.gmane.org>:
>
> Does this means that the client needs to use a different serialization
> infrastructure than the one provided by the JDK?



You'll need to override read/writeClassDescriptor() method in
ObjectInput/OutputStream, and there will be four-bytes header which
indicates the length of the object. This is easily done without much code.

Same for the pascalStrings are they compatible with what read/writeUTF
> produces?



Yes, if you use a 'UTF-8' CharsetEncoder.

HTH,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com