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

Namespace:  Kaazing.JMS
Assembly:  Kaazing.JMS (in Kaazing.JMS.dll)

Syntax

Visual Basic
Sub Send ( _
	message As IMessage, _
	deliveryMode As Integer, _
	priority As Integer, _
	timeToLive As Long _
)
C#
void Send(
	IMessage message,
	int deliveryMode,
	int priority,
	long timeToLive
)
Visual C++
void Send(
	IMessage^ message, 
	int deliveryMode, 
	int priority, 
	long long timeToLive
)

Parameters

message
Type: Kaazing.JMS..::..IMessage
the message to send
deliveryMode
Type: System..::..Int32
the delivery mode to use
priority
Type: System..::..Int32
the priority for this message
timeToLive
Type: System..::..Int64
the message's lifetime (in milliseconds)

Implements

IMessageProducer..::..Send(IMessage, Int32, Int32, Int64)

Exceptions

ExceptionCondition
Kaazing.JMS..::..JMSExceptionif the JMS provider fails to send the message due to some internal error.
Kaazing.JMS..::..MessageFormatExceptionif an invalid message is specified.
Kaazing.JMS..::..InvalidDestinationExceptionif a client uses this method with a QueueSender with an invalid queue.

See Also