setJMSDeliveryMode

 

public void setJMSDeliveryMode(int deliveryMode) throws JMSException;

Sets the delivery mode for this message.

Any value set using this method is ignored when the message is sent, but this method can be used to change the value in a received message.

To alter the delivery mode when a message is sent, use the setDeliveryMode() method on the QueueSender or TopicPublisher (this method is inherited from MessageProducer).

Parameters

  • deliveryMode - the delivery mode for this message.

Exceptions

  • JMSException - if an internal error occurs.


uj26740_