Creates a publisher for the specified topic.
Namespace:
Kaazing.JMSA client uses a TopicPublisher object to publish messages on a topic. Each time a client creates a TopicPublisher on a topic, it defines a new sequence of messages that have no ordering relationship with the messages it has previously sent.
Assembly: Kaazing.JMS (in Kaazing.JMS.dll)
Syntax
| Visual Basic |
|---|
Function CreatePublisher ( _ topic As ITopic _ ) As ITopicPublisher |
| C# |
|---|
ITopicPublisher CreatePublisher( ITopic topic ) |
| Visual C++ |
|---|
ITopicPublisher^ CreatePublisher( ITopic^ topic ) |
Parameters
- topic
- Type: Kaazing.JMS..::..ITopic
the Topic to publish to, or null if this is an unidentified producer
Exceptions
| Exception | Condition |
|---|---|
| Kaazing.JMS..::..JMSException | if the session fails to create a publisher due to some internal error. |
| Kaazing.JMS..::..InvalidDestinationException | if an invalid topic is specified. |