WebLogic Messaging API Class Library |

# IMessageProducer Members

IMessageProducer overview

#### Public Instance Properties

DeliveryMode | Gets or Sets the producer's default delivery mode as a `Constants.DeliveryMode`. Delivery mode is set to `PERSISTENT` by default.
Destination | Gets the destination associated with this `IMessageProducer` as an `IDestination`.
Priority | 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.
TimeToLive | Gets or Sets the default length of time in milliseconds relative to its dispatch time that a produced message should be retained by the message system as a `long`. Time to live is set to zero by default.

#### Public Instance Methods

Close | Closes the message producer. Since JMS allocates some resources on behalf of a `IMessageProducer` outside the .NET CLR, clients should Close them when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough. There is no need to close a message producer if the producer's parent session or connection is closed, or if its parent context has been closed with CloseAll.
Send | Overloaded. Sends a message using the `IMessageProducer`'s delivery mode, priority, and time to live.

#### See Also

IMessageProducer Interface | WebLogic.Messaging Namespace | CreateProducer