Repository navigation
feat: implement IBM MQ AsyncAPI mocking support (#1342) - #2217
Conversation
Signed-off-by: alokkumardalei-wq <[email protected]>
|
This is a great contribution! Thank you. I'll start reviewing this asap. |
|
I think I got it running on my M4 using the following command: docker run --platform=linux/amd64 --rm -p 1414:1414 -p 9443:9443 -e LICENSE=accept icr.io/ibm-messaging/mq:9.3.2.0-r2Is it correct? |
|
Hooray! 🎉 I got access to the web console on https://localhost:9443
|
|
PR looks great but you didn't include a test ... It seems that a Testcontainers module for MQ exists though: https://testcontainers.com/modules/ibmmq/ |
lbroudoux
left a comment
There was a problem hiding this comment.
It looks great! I just have 2 questions:
- I don't see any logic for queue creation. Are queues auto-created on the Queue Manager when they don't exist? Isn't there any option like persistence to provide?
- I don't see anything related to headers publication? Is it intentional to left them aside for this first iteration?
Thnaks a lot and thanks for your patience!
|
Hey @alokkumardalei-wq |
Hi @lbroudoux, thanks for your time in reviewing my prs 🙂! got busy with some work I'm taking a look at your feedback now. |
|
As we're close to the deadline of |
Signed-off-by: Laurent Broudoux <[email protected]>

Description
This PR implements the requested mocking support for IBM MQ via AsyncAPI, addressing #1342. With this change, Microcks can now mock producer behavior and publish asynchronous event messages directly to an IBM MQ instance.
Key Changes
ibmmq.server,ibmmq.queue-manager, etc.).com.ibm.mq.allclientdependency in themicrocks-async-minion pom.xml.IBMMQProducerManager.javato handle connection lifecycle and publishing logic over IBM MQ.IBMMQProducerManagerinto the central ProducerManager.java orchestration layer to route IBMMQ bindings to our new manager.ProducerManagerTest.javaand related integration tests) to account for the new constructor dependency.Testing and Validation
Since Apple Silicon (arm64) does not currently natively support the ibmcom/mq Docker images without Rosetta's x86-64-v3 emulation support, local containerized testing fails on M-series chips.
Validation should be performed via the CI/CD pipeline which will verify:
mvn clean install).If you have a remote IBM MQ server available or are running on an x86 host, you can test this locally by:
Fixes #1342