In .NET, destinations are created according to protocol type and can only be used on the protocol type for which they are created.
Two functions are provided for creating destinations, one for topics and one for queues:
These functions are available on the following two objects in the API:
In both cases these methods can accept a URI style string, which can include parameters, in the following format:
"topic://some/topic/name?priority=5"
Alternatively, these methods can accept just a destination name, that, is, a name without a topic:// or queue:// prefix and without parameters.
So, the following URI style string:
CreateTopic("topic://some/topic/name");
would produce the same result as the following destination name:
CreateTopic("some/topic/name");
As for WebSphere service integration bus JMS, topics can also be specified in a shorthand form which includes both the topicname and topicspace but cannot include parameters:
CreateTopic("topicspace:topicname");