"timfox" wrote : Several messages, e.g. acknowledge or cancel etc, can be sent
wither oneWay or blocking depending on the particular use case.
|
| Currently when such is processed on the server, there is currently no generic way to
know whether a response is required to be sent.
|
| SendMessage currently does this by checking whether the message is durable.
|
| I think we need some generic way of a packet knowing whether a response is required
(e.g. a oneway flag in AbstractPacket) rather than having to rely on application semantics
to determine whether a response should be sent.
|
Good suggestion.
I'll add a oneWay boolean attribute to AbstractPacket.
In the packet handler, before leaving the handle() method, I check if there is a response
to send or if the oneWay boolean is set to false on the request.
If the boolean is set to false, I'll send a NullPacket() to "unblock" the
client side.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124042#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...