spring rabbitmq sink RabbitMQ Sink

Provided by: "Apache Software Foundation"

Support Level for this Kamelet is: "Preview"

Send data to a RabbitMQ Broker.

Configuration Options

The following table summarizes the configuration options available for the spring-rabbitmq-sink Kamelet:

Property Name Description Type Default Example

exchangeName

Exchange name

Required The exchange name determines the exchange the queue will be bound to.

string

host

Server Address

Required RabbitMQ broker address.

string

localhost

port

Server Port

Required RabbitMQ broker port.

int

5672

autoDeclareProducer

Auto Declare Producer

Specifies whether the producer should auto declare binding between exchange, queue and routing key when starting.

boolean

false

password

Password

The password to access the RabbitMQ server.

string

queues

Queue name

The queue to receive messages from.

string

routingKey

Routing Key

The routing key to use when binding a consumer queue to the exchange.

string

username

Username

The username to access the RabbitMQ server.

string

Dependencies

At runtime, the spring-rabbitmq-sink Kamelet relies upon the presence of the following dependencies:

  • camel:spring-rabbitmq

  • camel:kamelet

Camel JBang usage

Prerequisites

  • You’ve installed JBang.

  • You have executed the following command:

jbang app install camel@apache/camel

Supposing you have a file named route.yaml with this content:

- route:
    from:
      uri: "kamelet:timer-source"
      parameters:
        period: 10000
        message: 'test'
      steps:
        - to:
            uri: "kamelet:spring-rabbitmq-sink"

You can now run it directly through the following command

camel run route.yaml