Skip to content

Latest commit

 

History

History

consume-messages

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Consume messages

This example demonstrates how to consume messages from an IBM MQ queue.

Prerequisites

1. Setup IBM MQ server

Refer to the Setup Guide to set up the IBM MQ server locally.

2. Configuration

Update IBM MQ related configurations in Config.toml in the example directory:

queueManagerName = "<queue-manager-name>"
host = "<host>"
port = "<port>"
channel = "<ibm-mq-channel>"
userID = "<user-ID>"
password = "<password>"
queueName = "<queue-name>"

Run the Example

Execute the following command to run the example:

bal run