Saturday, March 12, 2011

Getting Started with WebSphere MQ 7 Broker 7 on Linux

I was interested in evaluating what it was like working with MQ7 and Broker 7, so I setup a Linux VM (CentOS 5, x64). My goal was to run MQ, Broker, and the Toolkit all locally.

Note: Not all of this is perfect or maybe even ideal, its just what I did. CentOS is not a supported distribution for these products. I know more about MQ6 and Broker 6.1 than 7.

Before I Started


  • Installed DB2 Express
  • yum install compat-libstdc++-33 (MQ needs this)


Installing MQ7


  • Download MQ7 Trial and extract it

  • ./mqlicense.sh -accept (after reading it of course)

  • rpm -ivh MQSeriesRuntime-7.0.1-3.x86_64.rpm MQSeriesServer-7.0.1-3.x86_64.rpm

  • rpm -ivh MQSeriesClient-7.0.1-3.x86_64.rpm

  • rpm -ivh MQSeriesSDK-7.0.1-3.x86_64.rpm

  • rpm -ivh MQSeriesJava-7.0.1-3.x86_64.rpm

  • rpm -ivh MQSeriesEclipseSDK33-7.0.1-3.x86_64.rpm

  • Update /opt/mqm/eclipseSDK33/eclipse/eclipse.ini add -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/firefox-3.6

  • rpm -ivh MQSeriesConfig-7.0.1-3.x86_64.rpm

  • usermod -a -G mqm craig (replace craig with your username)

  • usermod -a -G mqm root

  • usermod -a -G mqm mqm (for some reason the mqm user didn't have the group)



Installing Message Broker


  • Download and extract the WMB Trial

  • groupadd mqbrkrs

  • usermod -a -G mqbrkrs craig

  • usermod -a -G mqbrkrs root

  • ./setuplinuxx64 -console

  • Mostly just enter 1s or 0s until complete



Installing WMB Toolkit


  • Download and extract the WMB Toolkit Trial

  • In the IBMInstallationManager directory...

  • ./install -nosplash --launcher.suppressErrors -input mbtoolkit-silent.xml -silent


Create Broker


  • Since I'm going to do things the easy way instead of the right way (I'm doing everything as root instead of running under mqm), need to reboot here

  • . /opt/ibm/mqsi/7.0/bin/mqsiprofile (notice the ". " at start)

  • cd /opt/mqm/bin

  • ./crtmqm -u DLQ ESBBKL

  • ./strmqm ESBBKL

  • ./runmqlsr -m ESBBKL -t TCP &

  • mqsicreatebroker ESBBKLBKR -i craig -a <password> -q ESBBKL

  • mqsichangebroker ESBBKLBKR -i craig -a <password> -P 1414

  • mqsistart ESBBKLBKR

  • mqsichangeproperties ESBBKLBKR -b httplistener -o HTTPListener -n startListener -v true

  • mqsistop ESBBKLBKR

  • mqsistart ESBBKLBKR

  • mqsicreateexecutiongroup ESBBKLBKR -e default



Working in the Toolkit


  • In the Brokers view, connect to remote queue ESBBKL at localhost.localdomain port 1414

I know that ideally I could right click Brokers and create a new local broker instead of doing a lot of the above, but obviously something up there threw it off. Furthermore, you can't use localhost because it tells you to use a local broker.

NOTE: When I went through and did this again to verify I didn't miss any steps, the toolkit already had my local broker in it. You probably won't need to add it, however if it is not in the list, do the above.

Create Local Queues


  • Create file with the following contents

DEFINE QLOCAL ('REQ.MB.TEST_FLOW') +
REPLACE

DEFINE QLOCAL ('RESP.MB.TEST_FLOW') +
REPLACE

DEFINE QLOCAL ('DLQ') +
REPLACE


  • runmqsc ESBBKL < queuedefs.conf


Create flows, more queues, have fun!

7 comments:

  1. Hi Craig, thanks for an interesting post. As you say, CentOS is not one of the supported platforms but being close to RedHat it should work reasonably smoothly.

    So - beyond the install and "getting started" steps listed here - what has your experience of WMB v7 been?

    ReplyDelete
  2. Sorry for the late response, apparently my notifications are not working properly. Short of just playing around with things, all of my experience is with WMB 6.1. My experience with WMB 7 hasn't even gotten to patterns yet. I'm looking to get some more time to do more research and get official training though. Should that happen I will post again.

    ReplyDelete
  3. Hi

    Is it just the 64 bit version that works for WMB7 ?

    I was trying to install on a 32 bit Ubuntu version but the runtime install seems to be 64 bit libraries only. Does this mean it only installs 64 bit (even though I run the 32 bit installer in silent mode ) ?

    The error I get when I try to config the runtime is :

    bash: ./mqsilist: cannot execute binary file

    mqsilist: ELF 64-bit LSB executable, x86-64, version 1, dynamically linked (uses shared libs), for GNU / Linux 2.4.0, not stripped


    Any ideas welcomed

    ReplyDelete
  4. I liked the install instruction, but you forgot to install the main rpm
    rpm -ivh MQSeriesServer-7.0.1-0.x86_64.rpm

    ReplyDelete
  5. Nice to be visiting your blog again, it has been months for me. Well this article that i’ve been waited for so long. I need this article to complete my assignment in the college, and it has same topic with your article. Thanks, great share. south african trading account

    ReplyDelete
  6. The crypto neighborhood remains to be hopeful that regardless of the recent crash, prices will climb again. Among those hopeful regarding the crypto market is Cardano Chief Executive Officer, Charles Hoskinson. In the last week, markets all over the world have collapsed. Simply hrs ago, we revealed that gold which was looking resilient and also a perfect safe house for capitalists also collapsed. The current events have motivated the FED chairman to release a declaration reassuring capitalists of the strength of the economic climate. Bitcoin bot

    ReplyDelete
  7. Bruc Bond simplifies corporate banking. It connects entity clients to a diverse network of partner banks, and manages their relationship seamlessly for the long term.

    ReplyDelete