Topics
Topic definitions (in the configuration file topics.conf) can set the import and export properties to specify one or more transports:
| Parameter Name | Description |
|---|---|
import
|
Import all Pulsar messages that arrive on the specified
|
export
|
Take all messages that arrive on this EMS topic and export them to Pulsar topics using the specified pulsar transports.
|
Note: The EMS server never re-exports an imported message on the same topic. (For general information about
topics.conf syntax and semantics, see topics.conf. You can also configure topics using the administration tool command addprop topic.)Examples
Example 1
The following tibemsadmin commands perform the following:
- Configure the EMS topic
myTopics.news1to import all messages that the transportsPULSAR01andPULSAR02receive from their respective Pulsar brokers on the Pulsar topicmyTopics.news1. - Configure the EMS topic
myTopics.news2to export messages to the transportPULSAR02. The transport will publish these messages to the Pulsar topicmyTopics.news2.
addprop topic myTopics.news1 import="PULSAR01,PULSAR02" addprop topic myTopics.news2 export="PULSAR02"
Example 2
The following tibemsadmin commands perform the following:
- Configure EMS topic
myTopics.events1to import messages that the transportPULSAR03receives on the Pulsar topicmyTopics.events1. - Configure EMS topic
myTopics.events2to import messages that the transportPULSAR03receives on the Pulsar topicmyTopics.events2.
addprop topic myTopics.events1 import="PULSAR03" addprop topic myTopics.events2 import="PULSAR03"
Example 3
The following tibemsadmin commands perform the following:
- Configure EMS topic
myTopics.updates1to export messages to the transportPULSAR04. The transport will publish these messages to the Pulsar topicmyTopics.updates1. - Configure EMS topic
myTopics.updates2to export messages to the transportPULSAR04. The transport will publish these messages to the Pulsar topicmyTopics.updates2.
addprop topic myTopics.updates1 export="PULSAR04" addprop topic myTopics.updates2 export="PULSAR04"