Creates a publisher for the specified topic.

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

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

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

See Also