Creates a topic identity given a Topic name.

This facility is provided for the rare cases where clients need to dynamically manipulate topic identity. This allows the creation of a topic identity with a provider-specific name. Clients that depend on this ability are not portable.

Note that this method is not for creating the physical topic. The physical creation of topics is an administrative task and is not to be initiated by the JMS API. The one exception is the creation of temporary topics, which is accomplished with the createTemporaryTopic method.

Namespace:  Kaazing.JMS
Assembly:  Kaazing.JMS (in Kaazing.JMS.dll)

Syntax

Visual Basic
Function CreateTopic ( _
	topicName As String _
) As ITopic
C#
ITopic CreateTopic(
	string topicName
)
Visual C++
ITopic^ CreateTopic(
	String^ topicName
)

Parameters

topicName
Type: System..::..String
the name of this Topic

Return Value

a Topic with the given name

Implements

ISession..::..CreateTopic(String)

Exceptions

ExceptionCondition
Kaazing.JMS..::..JMSExceptionif the session fails to create a topic due to some internal error.

See Also