This is a simple example of a containerized RabbitMQ listener.
- Access to a RabbitMQ server
-
Create an
Event Handler
component- Fork this repository
- Login to Choreo
- Navigate to create a
Event Handler
component - Provide a name and description for the component
- Authorize and select the GitHub details
- Select the
GitHub Account
and the forked repository forGitHub Repository
- Select the
Branch
asmain
- Select
Ballerina
asBuildpack
- Select
containerized-rabbitmq-listener
as theBallerina Project Directory
- Click on "Create" to create the component
-
Build and deploy the component
- Once the component is created, add the following environment variables:
HOST
- The RabbitMQ server hostVHOST
- The RabbitMQ virtual hostUSERNAME
- The RabbitMQ usernamePASSWORD
- The RabbitMQ password
- Deploy the component
- Once the component is created, add the following environment variables:
Send a message to the "TestQueue" queue using a RabbitMQ producer. The message should be logged in the Choreo console.