WebLogic Messaging API Class Library |

# IMessageProducer.Priority Property

Gets or Sets the producer's default priority as an `int`.

The JMS API defines ten levels of priority value, with 0 as the lowest priority and 9 as the highest. Clients should consider priorities 0-4 as gradations of normal priority and priorities 5-9 as gradations of expedited priority. Priority is set to 4 by default.

Priority {get; set;}

#### Property Value

Represents the message priority for this message producer; must be a value between 0 and 9

#### Exceptions

Exception Type | Condition
--- | ---
MessageException | if JMS fails to get or set the priority due to some internal error.

#### See Also

IMessageProducer Interface | WebLogic.Messaging Namespace | IMessage.Priority | Constants.Defaults.DEFAULT_PRIORITY