Creates a nondurable subscriber to the specified topic.
Namespace:
Kaazing.JMSA client uses a TopicSubscriber object to receive messages that have been published to a topic.
Regular TopicSubscriber objects are not durable. They receive only messages that are published while they are active.
In some cases, a connection may both publish and subscribe to a topic. The subscriber NoLocal attribute allows a subscriber to inhibit the delivery of messages published by its own connection. The default value for this attribute is false.
Assembly: Kaazing.JMS (in Kaazing.JMS.dll)
Syntax
| Visual Basic |
|---|
Function CreateSubscriber ( _ topic As ITopic _ ) As ITopicSubscriber |
| C# |
|---|
ITopicSubscriber CreateSubscriber( ITopic topic ) |
| Visual C++ |
|---|
ITopicSubscriber^ CreateSubscriber( ITopic^ topic ) |
Parameters
- topic
- Type: Kaazing.JMS..::..ITopic
the Topic to subscribe to
Exceptions
| Exception | Condition |
|---|---|
| Kaazing.JMS..::..JMSException | if the session fails to create a subscriber due to some internal error. |
| Kaazing.JMS..::..InvalidDestinationException | if an invalid topic is specified. |