[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: New transport: Determining oneway messages

jmesnil do-not-reply at jboss.com
Mon Jan 28 08:10:02 EST 2008


"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#4124042

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124042



More information about the jboss-dev-forums mailing list