WebLogic Messaging API Class Library

ISession. 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 to be initiated by the JMS API. The one exception is the creation of temporary topics, which is accomplished with the CreateTemporaryTopic method.

ITopic (
   String topicName
);

Parameters

String
the name of this ITopic

Return Value

An ITopic with the given name

Exceptions

Exception TypeCondition
MessageExceptionif the session fails to create a topic due to some internal error.

See Also

ISession Interface | WebLogic.Messaging Namespace