force order of messages with HornetQ
问题 I've setup a jms server with HornetQ as a JMS provider (Queue). I have an application which acts as a producer and another one (different computer) as a consumer. I understand that the JMS specification doesn't guarantee the order of delivery, but I'm looking for a way to do just that: receive the messages exactly in the order they have been sent, even if it's provider specific. Any ideas? 回答1: Apparently this can be achieved by disabling the consumer cache. This is done by changing the