Publishes a message to the topic.
Uses the TopicPublisher's default delivery mode, priority,
and time to live.
Namespace:
Kaazing.JMSAssembly: Kaazing.JMS (in Kaazing.JMS.dll)
Syntax
| Visual Basic |
|---|
Sub Publish ( _ message As IMessage _ ) |
| C# |
|---|
void Publish( IMessage message ) |
| Visual C++ |
|---|
void Publish( IMessage^ message ) |
Parameters
- message
- Type: Kaazing.JMS..::..IMessage
the message to publish
Exceptions
| Exception | Condition |
|---|---|
| Kaazing.JMS..::..JMSException | if the JMS provider fails to publish 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 a TopicPublisher with an invalid topic. |