Collapse All Expand All

.NET Framework Class Library
Members See Also

[TIBCO.EMS .NET client library 5.1 documentation]

A client uses a QueueSender object to send messages to a queue.

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

# Syntax

    public class QueueSender : MessageProducer

    Public Class QueueSender _
    	Inherits MessageProducer

    public ref class QueueSender : public MessageProducer

# Remarks

This class extends MessageProducer. It overloads more send methods, specializing the destination parameter to a queue.

Normally, the Queue is specified when a QueueSender is created. In this case, an attempt to use the send methods for an unidentified QueueSender will throw a UnsupportedOperationException.

If the QueueSender is created with an unidentified Queue, an attempt to use the send methods that assume that the Queue has been identified will throw a UnsupportedOperationException.

During the execution of its send method, a message must not be changed by other threads within the client. If the message is modified, the result of the send is undefined.

After sending a message, a client may retain and modify it without affecting the message that has been sent. The same message object may be sent multiple times.

The following message headers are set as part of sending a message: Destination, DeliveryMode, Expiration, Priority, MessageID and TimeStamp. When the message is sent, the values of these headers are ignored. After the completion of the send, the headers hold the values specified by the method sending the message. It is possible for the send method to not set the MessageID and TimeStamp if they are explicitly disabled by setting the MessageProducer.DisableMessageID or MessageProducer.DisableMessageTimestamp property.

# Inheritance Hierarchy

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

# See Also

QueueSender Members
TIBCO.EMS Namespace