Creates a nondurable subscriber to the specified topic.

A 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.

Namespace:  Kaazing.JMS
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

ExceptionCondition
Kaazing.JMS..::..JMSExceptionif the session fails to create a subscriber due to some internal error.
Kaazing.JMS..::..InvalidDestinationExceptionif an invalid topic is specified.

See Also