Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to configure MQTT channel #497

aliraza995 started this conversation in General
Discussion options

I am working on a project where we need to use mqtt protocol to communicate with IBM MQ. I was trying to configure ibm mq docker container with mqtt channel configured but unable to configure it so far. Can you suggest if its possible if yes. Can you suggest how?

You must be logged in to vote

Replies: 2 comments

Comment options

You will need to rebuild the container image and enable the MQTT feature. This is down by editing the install-mq.sh file from:
export genmqpkg_incmqxr=0
to
export genmqpkg_incmqxr=1
Then as part of the container build process the MQTT feature should be included.

You must be logged in to vote
0 replies
Comment options

The sample container doesn't have MQTT installed or configured, so you'll need to build your own image. I'm not aware of anyone who has done it, but it should certainly be possible. A few pointers:

  1. You'll need to install the MQXR package, which you can enable in the install-mq.sh script.
  2. I don't think the XR server gets started automatically, so you'll need to start the XR server at runtime.
    • You could do it through an MQ "service" configured via MQSC
    • We already start the MQ web server in post_init.go, so you could do it from the Go code there.
    • Alternatively, I think you could create a separate container which shares an IPC namespace (as Pods do in Kubernetes), and run it in a separate container.
  3. If you decide to run it in the same container, you might want to mirror the logs to the container stdout, which we already do for the other logs.
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Converted from issue

This discussion was converted from issue #494 on April 12, 2022 08:55.

AltStyle によって変換されたページ (->オリジナル) /