WebLogic Messaging API Class Library

IMessageProducer.Send\xA0Method\xA0(IMessage, DeliveryMode, Int32, Int64)

Sends a message to the destination, specifying delivery mode, priority, and time to live.

void\xA0Send(
\xA0\xA0\xA0IMessage\xA0message,
\xA0\xA0\xA0Constants.DeliveryMode\xA0deliveryMode,
\xA0\xA0\xA0Int32\xA0priority,
\xA0\xA0\xA0Int64\xA0timeToLive
);

Parameters

IMessage
the message to send
Constants.DeliveryMode
the delivery mode to use
Int32
the priority for this message
Int64
the message's lifetime (in milliseconds)

Exceptions

Exception Type Condition
MessageException if JMS fails to send the message due to some internal error.
MessageFormatException if an invalid message is specified.
InvalidDestinationException if a client uses this method with a IMessageProducer with an invalid destination.
NotSupportedException if a client uses this method with a IMessageProducer that did not specify a destination at creation time.

See Also

IMessageProducer Interface | WebLogic.Messaging Namespace | IMessageProducer. Overload List | CreateProducer