You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Rob Butler <cr...@yahoo.com> on 2006/06/17 22:23:53 UTC

server -> client async message

Hello again,

I was wondering what the correct way of implementing
server to client asynchronous messaging with Mina is.

Can I place an IoSession into a global HashMap from
within a ProtocolHandler.messageReceived(...) method
and then write to the IoSession later from another
method well after the messageReceived method
completed?  This will probably work for TCP, but I
don't know if it is the correct way to do things.

Will something similar work for UDP?

Thanks again,
Rob

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com