[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: New wireformat and client side remoting
timfox
do-not-reply at jboss.com
Wed Nov 14 05:26:18 EST 2007
"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#4104456
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104456
More information about the jboss-dev-forums
mailing list