"jmesnil" wrote :
| This 3rd case is meant to be covered by sendOneWay(AbstractPacket packet,
PacketHandler callback).
|
That's right. But I was just making the point that in the wiki page, you mention that
this mode would be used for non persistent messages which is not right :)
anonymous wrote :
| "# send a packet and set a PacketHandler? to be called back later on (e.g. send
a non persistent message)
|
| * using sendOneWay(AbstractPacket? packet, PacketHandler? callbackHandler)
|
Whereas the real use case is persistent non blocking messages.
anonymous wrote :
| For now, the response is handled by the same thread which sent the request but I plan
to use an ExecutorService to have other threads take care of handling the packet
|
I'm not sure that will be necessary - we want to avoid as much context switching as
possible.
AFAIK Mina has two thread pools - once for the selectors and one to actually execute the
requests (responses). Should be ok to just use the MINA thread surely?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104456#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...