Skip to main content
Version: v2.0.0

RabbitMQ connector

Audience: operators bridging EventMesh with RabbitMQ. Move events between EventMesh and a RabbitMQ broker over AMQP 0-9-1. Source consumes a queue; sink publishes to an exchange with an optional routing key.


Classes

DirectionClassBehavior
Sourceorg.apache.eventmesh.connector.rabbitmq.source.RabbitmqSourceConnectorbasicConsume on the configured queue (auto-ack) into an internal buffer drained by poll().
Sinkorg.apache.eventmesh.connector.rabbitmq.sink.RabbitmqSinkConnectorbasicPublish each CloudEvent's data to the exchange with the routing key.

Source configuration

KeyDefaultDescription
connector.hostlocalhostAMQP host
connector.port5672AMQP port
connector.queuesourceQueue to consume

Sink configuration

KeyDefaultDescription
connector.hostlocalhostAMQP host
connector.port5672AMQP port
connector.exchange``Target exchange (empty = default)
connector.routingKey``Routing key

Running

bin/start-connector.sh with -Dconnector.class=...RabbitmqSinkConnector -Dconnector.mode=sink -Dconnector.clientId=c1 -Dconnector.exchange=amq.topic -Dconnector.routingKey=events