> JMS says that the consuming application can call getMessagePriority() or
> getDeliveryMode() on a message that it has just received. If the message
> implementation is from a foreign provider then the only way the JMS provider
> can set these is using setMessagePriority and setDeliveryMode.
>
Ok, I see.. (however it's for sending, not consuming).. when you
consume, you're deagling with your own consumer.
Most JMS IMplementations I know will have something like this on the
MessageProducer:
public void send(final Destination destination, final Message
message) throws JMSException
{
...
message.setJMSDeliveryMode(defaultDeliveryMode);
message.setJMSPriority(defaultPriority);
doSend(message, defaultTimeToLive, (HornetQDestination)destination);
}