setPriority

 

public void setPriority(int priority) throws JMSException;

Sets the producer's default priority.

Parameters

  • priority - the message priority for this message producer. Values can be between 0 and 9, inclusive. The default is 4.

Exceptions

  • JMSException - with one of the following reasons:

    • MQJMS_MESSAGEPRODUCER_CLOSED

    • MQJMS_EXCEPTION_BAD_VALUE


uj29560_