WebLogic Messaging API Class Library |

# ISession.CreateTopic Method

Creates a topic identity given a `ITopic` 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 initiated by the JMS API.

ITopic CreateTopic(
String topicName
);

#### Parameters

String
  the name of this `ITopic`

#### Return Value

An `ITopic` with the given name

#### Exceptions

Exception Type | Condition
--- | ---
MessageException | if the session fails to create a topic due to some internal error.

#### See Also

ISession Interface | WebLogic.Messaging Namespace