You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Horia Muntean <ho...@gmail.com> on 2005/05/17 21:38:39 UTC

Thread safe ProtocolSession

Is Mina's ProtocolSession thread safe?

Suppose one has 2 threads that call session.write("hello"). What is the
result of such situation?

Regards,
Horia

Re: Thread safe ProtocolSession

Posted by Trustin Lee <tr...@gmail.com>.
Hi Horia, 

2005/5/18, Horia Muntean <ho...@gmail.com>:
> Is Mina's ProtocolSession thread safe?

Yes

> 
> Suppose one has 2 threads that call session.write("hello"). What is the
> result of such situation?

You can. :)  If not, please let me know.  It must be a bug!

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