Creating Topics

In the Solace C API (not object-oriented), a topic is simply a string (char*).

A topic is simply set as a destination message property (refer to Destination).

Clients can create:

  • Non-temporary topics at the factory level.
  • Temporary topics at the session level. The scope and lifetime of a temporary topic is that of the session it is created in.

For information on the supported topic syntax rules, refer to Topic Support & Syntax.

Topics

For non-temporary topics, a topic is simply a char* (string) - no function is required to create a topic.

Temporary Topics

To create a temporary topic, call solClient_session_createTemporaryTopicName() on a connected session. A temporary topic's physical name is automatically generated by the API.

A temporary topic can only be created on a connected session.