James Strachan wrote:
Also if you had a single code generated handler interface with a method for each of the AMQMethodBody types, you could use the Visitor pattern to invoke the right method (handler) from the AMQMethodBody object when the command is read in, avoiding the map lookup in the AMQStateManager. (We do this in OpenWire too BTW)
Right, thats what we do in the c++ broker.
