Collapse All Expand All

.NET Framework Class Library
Session Class See Also

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

Create a MessageProducer to send messages to the specified destination.

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

# Syntax

    public MessageProducer CreateProducer(
    	Destination dest
    )

    Public Function CreateProducer ( _
    	dest As Destination _
    ) As MessageProducer

    public:
    MessageProducer^ CreateProducer(
    	Destination^ dest
    )

#### Parameters

dest
  Type: TIBCO.EMS.UFO..::.Destination

  When non-null, the producer sends messages to this destination. When null, the client program must specify the destination for each message individually.

# Remarks

A client uses a MessageProducer object to send messages to a destination. Since Queue and Topic both inherit from Destination, they can be used in the destination parameter to create a MessageProducer object. The MessageProducer object will be recreated during connection recovery.

# See Also

Session Class
TIBCO.EMS.UFO Namespace