directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <trus...@gmail.com>
Subject Re: [mina] Large Object Serialization No go
Date Tue, 15 Nov 2005 02:20:20 GMT
2005/11/15, Trustin Lee <trustin@gmail.com>:
>
> Hi Amit,
> It should work fine even with 1MB ByteBuffer. It would be great if you can
> attach a JUnit
>
TestCase to reproduce this issue.
>

And please don't forget to make sure that you didn't close the session
before the message is actually written out completely. You can use
WriteFuture:

WriteFuture future = session.write(bigBuffer);
future.join();
assert future.isWritten(); // It will return true if written successfully.

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

Mime
View raw message