There is a MDB in my app,performing some business logic when a message firing it.However,suppose there is an exception occured and I send a error message to the MDB,hoping that the MDB can process the error message first,skipping the messages waiting in the queue.I want the queue can provide the more urgent message to the MDB prior to the other ordinary messages.I know that there is a method setPriority() in MessageProducer interface,guaranteeing that message with higher priority can be sent erlier.However,how can JMS guarantee that a message with higher priority can be received earlier by a MDB if the message are in the tail of the queue?