Sends a message to a queue for an unidentified message producer,
specifying delivery mode, priority and time to live.
Namespace:
Kaazing.JMSTypically, a message producer is assigned a queue at creation time; however, the JMS API also supports unidentified message producers, which require that the queue be supplied every time a message is sent.
Assembly: Kaazing.JMS (in Kaazing.JMS.dll)
Syntax
| Visual Basic |
|---|
Sub Send ( _ queue As IQueue, _ message As IMessage, _ deliveryMode As Integer, _ priority As Integer, _ timeToLive As Long _ ) |
| C# |
|---|
void Send( IQueue queue, IMessage message, int deliveryMode, int priority, long timeToLive ) |
| Visual C++ |
|---|
void Send( IQueue^ queue, IMessage^ message, int deliveryMode, int priority, long long timeToLive ) |
Parameters
- queue
- Type: Kaazing.JMS..::..IQueue
the queue to send this message to
- 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)
Exceptions
| Exception | Condition |
|---|---|
| Kaazing.JMS..::..JMSException | if the JMS provider fails to send the message due to some internal error. |
| Kaazing.JMS..::..MessageFormatException | if an invalid message is specified. |
| Kaazing.JMS..::..InvalidDestinationException | if a client uses this method with an invalid queue. |