-
Notifications
You must be signed in to change notification settings - Fork 19
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
Added MQ Connection Options to allow configuring of connection programatically #55
Added MQ Connection Options to allow configuring of connection programatically #55
Conversation
Hi @azarc-jono-langley, thanks for your PR - I'll take a look and share comments over the next week or so. In the mean time, please can you confirm your agreement to the Contributor License Agreement per our process for Contributing, thanks!
|
Hi @azarc-jono-langley - I tried out your PR, and identified three areas that need some additional work please before we can merge to main. 1. Backwards compatibility
It's straightforward to avoid that side effect though - please could you refactor the request as follows;
(and the equivalent pattern for We should then be in the position where existing applications (and test cases) can execute successfully without modification, and any applications that want to use the new MQOptions variation of the function to get the more advanced behaviour. 2. Path coverage for tests 3. Functional behaviour of tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Three areas of update request in #55 (comment)
- Backwards compatibility
- Path coverage of tests
- Functional behabiour of tests
Hi @matrober-uk Thanks for feedback. Apologies for the miss, the unfortunate side affect of using ARM for my development machine means working with IBMMQ client libraries difficult :) In line with your above suggestions:
|
Hi @azarc-jono-langley - no problem, I appreciate you taking the time to submit a PR in the first place! To your questions:
|
15f0f50
to
27f7e01
Compare
27f7e01
to
44b5720
Compare
Ok, I've made the changes now.
One thing to note, when sending messages over the size limit, it looks like the send request hangs when sending to the message queue. It must be something to do with the underlying IBMMQ Client lib, i didn't have time to investigate so i implemented a send context which could send the message to the queue but on the receive from queue with a small MaxMsgLength configured, the lib throws the expected error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @azarc-jono-langley for making the updates I requested, looks good!
there is one minor addition that I'll fix under a separate PR - to consume the message that is sent by the testcase at the end so that the queue is left clean for the next test in the suite, but I'll handle that update.
Clean up message after conn options test - #55
Added the ability to provide config options on context creation. This allows configuration of channel definitions outside of the connection configuration and provides a way to programatically provide options without the need to have custom Connection factories.
Example of use:
I accept the terms of the Contributor License Agreement.