WebLogic Messaging API Class Library

IMessageProducer.Send�Method�(IDestination, IMessage, DeliveryMode, Int32, Int64)

Sends a message to a destination for an unidentified message producer, specifying delivery mode, priority and time to live.

Typically, a message producer is assigned a destination at creation time; however, the JMS API also supports unidentified message producers, which require that the destination be supplied every time a message is sent.

void�Send(
���IDestinationdestination,
���IMessagemessage,
���DeliveryModedeliveryMode,
���intpriority,
���longtimeToLive
);

Parameters

destination
the destination to send this message to
message
the message to send
deliveryMode
the delivery mode to use
priority
the priority for this message
timeToLive
the message's lifetime (in milliseconds)

Exceptions

Exception TypeCondition
MessageExceptionif JMS fails to send the message due to some internal error.
MessageFormatExceptionif an invalid message is specified.
InvalidDestinationExceptionif a client uses this method with an invalid destination.

See Also

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