Sends a message to a destination for an unidentified message producer.
Uses the MessageProducer's default delivery mode, priority,
and time to live.
Namespace:
Kaazing.JMSTypically, 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.
Assembly: Kaazing.JMS (in Kaazing.JMS.dll)
Syntax
| Visual Basic |
|---|
Sub Send ( _ destination As IDestination, _ message As IMessage _ ) |
| C# |
|---|
void Send( IDestination destination, IMessage message ) |
| Visual C++ |
|---|
void Send( IDestination^ destination, IMessage^ message ) |
Parameters
- destination
- Type: Kaazing.JMS..::..IDestination
the destination to send this message to
- message
- Type: Kaazing.JMS..::..IMessage
the message to send
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 destination. |
| [!:java] | .lang.UnsupportedOperationException if a client uses this method with a MessageProducer that specified a destination at creation time. |