"timfox" wrote :
| Yes, persistent messages are sent blocking request / response, non persistent messages
can be sent fire and forget (not response required at all).
|
| But there is a third mode: non blocking request /response.
|
| This is where you send the request, but you don't block. The server receives the
request and processes it. The server then sends back a response. The response gets handled
on the client side by a different thread to that which sent the request. These semantics
aren't supported by JMS. But would be very useful for our generic API by giving very
high throughput for persistent messaging sending since it wouldn't be limited by the
network RTT as it is in the blocking case.
This 3rd case is meant to be covered by sendOneWay(AbstractPacket packet, PacketHandler
callback).
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
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104447#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...