WebLogic Messaging API Class Library |

# IMessageProducer Interface

A client uses a `IMessageProducer` object to send messages to a destination. An `IMessageProducer` object is created by optionally passing a `IDestination` object to a message-producer creation method supplied by a session.

A client also has the option of creating a message producer without supplying a destination. In this case, a destination must be provided with every send operation. A typical use for this kind of message producer is to send replies to requests using the request's `JMSReplyTo` destination.

A client can specify a default delivery mode, priority, and time to live for messages sent by a message producer. It can also specify the delivery mode, priority, and time to live for an individual message as a parameter to a send operation.

A client can specify a time-to-live value in milliseconds for each message it sends. This value defines a message expiration time that is the sum of the message's time-to-live and the GMT when it is sent (for transacted sends, this is the time the client sends the message, not the time the transaction is committed).

For a list of all members of this type, see IMessageProducer Members.

public interface IMessageProducer

#### Requirements

Namespace: WebLogic.Messaging

Assembly: WebLogic.Messaging (in WebLogic.Messaging.dll)

#### See Also

IMessageProducer Members | WebLogic.Messaging Namespace | CreateProducer