users@grizzly.java.net

Re: using grizzly for object serialization with datainput and dataoutput

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Tue, 24 Feb 2009 10:18:04 +0100

Hi David,

sorry for late reply.

>
> I'm trying to build a client/server application using nio and
> grizzly.
> My objects are all serializable through datainput/dataoutput.
> I have implemented an async protocol using mina and
> StreamIOHandlers but the performance is not the best (specially in
> terms of latency), and I really need both throughput and latency.
> Do you have any tutorials where I can serialize/deserialize using
> the input/outputstreams? (no protocol i think). Or any pointers in
> general?
Unfortunately currently we don't have ready Input/Output Stream based
implementation. IMHO it could be not so difficult to implement one,
for example we currently have utility class
com.sun.grizzly.util.InputReader, which implements InputStream and is
able to work with NIO channels in blocking InputStream manner. Though
we don't have OutputStream implemented.

Can I ask you to will RFE @ [1] with some usecase details. And I'll
try to provide implementation as soon as possible.

Thank you in advance.

WBR,
Alexey.

[1] grizzly.dev.java.net/issues
>
>
> Regards
> David Alves