Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Retrieving Messages from IBM MQ by Matching Correlation ID and Message ID #49

Merged
merged 18 commits into from
Aug 27, 2024

Conversation

ayeshLK
Copy link
Member

@ayeshLK ayeshLK commented Aug 27, 2024

Purpose

$subject

Fixes: #6918
Part of: #767

Examples

Message producer

Queue producer = check queueManager.accessQueue("DEV.QUEUE.1", ibmmq:MQOO_OUTPUT);

check producer->put({
    messageId: "reply-message-1".toBytes(),
    correlationId: "request-message-1".toBytes(),
    payload: "Sample message".toBytes()
});

Message consumer

Queue consumer = check queueManager.accessQueue("DEV.QUEUE.1", ibmmq:MQOO_INPUT_AS_Q_DEF);

// Can query by using both `messageId` and/or `correlationId`
Message? message = check consumer->get(matchOptions = { 
    correlationId: "request-message-1".toBytes() 
});

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec
  • Checked native-image compatibility

@ayeshLK ayeshLK marked this pull request as ready for review August 27, 2024 12:14
@ayeshLK ayeshLK requested review from MohamedSabthar and removed request for shafreenAnfar and dilanSachi August 27, 2024 12:14
MohamedSabthar
MohamedSabthar previously approved these changes Aug 27, 2024
@NipunaRanasinghe
Copy link
Contributor

NipunaRanasinghe commented Aug 27, 2024

Shall we update the changelog file as well?

@ayeshLK
Copy link
Member Author

ayeshLK commented Aug 27, 2024

Shall we update the changelog file as well?

It is already updated.

Copy link
Contributor

@NipunaRanasinghe NipunaRanasinghe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ayeshLK ayeshLK merged commit 4b00057 into ballerina-platform:main Aug 27, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Support for Retrieving Messages from IBM MQ by Matching Correlation ID and Message ID
3 participants