Installation
Configuration
The configuration of the ActiveMQ source connector has the following properties.ActiveMQ source connector configuration
Name | Type | Required | Sensitive | Default | Description |
---|---|---|---|---|---|
protocol | String | true | false | ”tcp” | The ActiveMQ protocol. |
host | String | true | false | ” ” (empty string) | The ActiveMQ host. |
port | int | true | false | 5672 | The ActiveMQ port. |
username | String | false | true | ” ” (empty string) | The username used to authenticate to ActiveMQ. |
password | String | false | true | ” ” (empty string) | The password used to authenticate to ActiveMQ. |
queueName | String | false | false | ” ” (empty string) | The ActiveMQ queue name that messages should be read from or written to. |
topicName | String | false | false | ” ” (empty string) | The ActiveMQ topic name that messages should be read from or written to. |
Configure ActiveMQ source connector
Before using the ActiveMQ source connector, you need to create a configuration file through one of the following methods.-
JSON
-
YAML
-
Prepare ActiveMQ service.
-
Put the
pulsar-io-activemq-2.5.1.nar
in the pulsar connectors catalog. -
Start Pulsar in standalone mode.
-
Run ActiveMQ source locally.
-
Consume Pulsar messages.
-
Send ActiveMQ messages.
Use the test method
sendMessage
of theclass org.apache.pulsar.ecosystem.io.activemq.ActiveMQDemo
to send ActiveMQ messages.