Yes that is what you should do, certainly in the TCP case.
I believe it will work for UDP but I haven't tried that.
Robert
| Rob Butler <[EMAIL PROTECTED]>
17/06/2006 21:23
|
To: [email protected] cc: Subject: 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
This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
and affiliates.
