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.news1
to import all messages that the transportsPULSAR01
andPULSAR02
receive from their respective Pulsar brokers on the Pulsar topicmyTopics.news1
. - Configure the EMS topic
myTopics.news2
to 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.events1
to import messages that the transportPULSAR03
receives on the Pulsar topicmyTopics.events1
. - Configure EMS topic
myTopics.events2
to import messages that the transportPULSAR03
receives 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.updates1
to export messages to the transportPULSAR04
. The transport will publish these messages to the Pulsar topicmyTopics.updates1
. - Configure EMS topic
myTopics.updates2
to 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"