Collapse All Expand All

.NET Framework Class Library
Members See Also

[TIBCO.EMS.UFOCLIENT .NET client library 6.0 documentation]

Defines the root behavior of all message producers.

Namespace: TIBCO.EMS.UFO
Assembly: TIBCO.EMS.UFO (in TIBCO.EMS.UFO.dll)

# Syntax

    public class MessageProducer

    Public Class MessageProducer

    public ref class MessageProducer

# Remarks

A client uses a MessageProducer object to send messages to a destination.

MessageProducer is the parent interface for all message producers. 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 ReplyTo 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.

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).

This class lacks a constructor. Instead, clients create message producers using methods of a Session object; subclasses, such as QueueSession and TopicSession, each define methods to create corresponding producer subclasses.

# Inheritance Hierarchy

System..::.Object
TIBCO.EMS.UFO..::.MessageProducer
TIBCO.EMS.UFO..::.QueueSender
TIBCO.EMS.UFO..::.TopicPublisher

# See Also

MessageProducer Members
TIBCO.EMS.UFO Namespace