I've got some further experience of WMQ after the past few weeks: -
so am revisiting IIB ( having played briefly with WebSphere Message Broker a while back ): -
This is, as ever, a work-in-progress.
My objective is two fold: -
(a) Validate WMQ to BPM integration by putting a message onto a Queue, and then retrieving it using a Message Driven Bean ( building on this Using WebSphere MQ V7 as JMS Provider for WebSphere Application Server V7, V8.0 and V8.5 )
(b) Create a basic flow in IIB to, for example, pull a database row from DB2 and post it to BPM, again using WMQ as the transport mechanism, perhaps using IBM HTTP Server in front of IIB to trigger the flow ....
However, one needs to walk before one can run ... so here's the installation of IIB: -
Create File Systems and Group/User - as root
mkdir /opt/ibm/mqsi
mkdir /var/mqsi
groupadd mqbrkrs
useradd -g mqbrkrs -G mqbrkrs,mqm -d /home/wmbadmin wmbadmin
passwd wmbadmin
chown -R wmbadmin:mqbrkrs /opt/ibm/mqsi
chown -R wmbadmin:mqbrkrs /var/mqsi
Unpack Binaries - as wmbadmin
su - wmbadmin
mkdir /tmp/IIB
tar xvzf /mnt/hgfs/Software/IIB9002/IIB_V9.0.0.2_LINUX_X86-64.tar.gz -C /tmp/IIB
Prepare Response Files - as wmbadmin
cp /tmp/IIB/integrationbus_runtime1/sample-scripts/response.properties ~
sed -i'' 's/FALSE/TRUE/g' response.properties
Install Binaries - as wmbadmin
/tmp/IIB/integrationbus_runtime1/setuplinuxx64.bin -i silent -f ~/response.properties -DLICENSE_ACCEPTED=TRUE
Validate
mkdir /opt/ibm/mqsi
mkdir /var/mqsi
groupadd mqbrkrs
useradd -g mqbrkrs -G mqbrkrs,mqm -d /home/wmbadmin wmbadmin
passwd wmbadmin
chown -R wmbadmin:mqbrkrs /opt/ibm/mqsi
chown -R wmbadmin:mqbrkrs /var/mqsi
Unpack Binaries - as wmbadmin
su - wmbadmin
mkdir /tmp/IIB
tar xvzf /mnt/hgfs/Software/IIB9002/IIB_V9.0.0.2_LINUX_X86-64.tar.gz -C /tmp/IIB
Prepare Response Files - as wmbadmin
cp /tmp/IIB/integrationbus_runtime1/sample-scripts/response.properties ~
sed -i'' 's/FALSE/TRUE/g' response.properties
Install Binaries - as wmbadmin
/tmp/IIB/integrationbus_runtime1/setuplinuxx64.bin -i silent -f ~/response.properties -DLICENSE_ACCEPTED=TRUE
Validate
cat /opt/ibm/mqsi/9.0.0.2/IBM_Integration_Bus_Install_09_08_2014_16_14_44.log
...
Execute Command: /opt/ibm/mqsi/9.0.0.2/bin/mqsicreateworkpath "/var/mqsi"
Status: SUCCESSFUL
Modify Text File - Single File: /opt/ibm/mqsi/9.0.0.2/Uninstaller/Uninstaller.lax
Status: SUCCESSFUL
Modify Text File - Single File: New File /var/mqsi/WMB_Install_Success.txt
Status: SUCCESSFUL
...
Status: SUCCESSFUL
Modify Text File - Single File: /opt/ibm/mqsi/9.0.0.2/Uninstaller/Uninstaller.lax
Status: SUCCESSFUL
Modify Text File - Single File: New File /var/mqsi/WMB_Install_Success.txt
Status: SUCCESSFUL
...
cat /var/mqsi/WMB_Install_Success.txt
WMB Install Success
Test
/opt/ibm/mqsi/9.0.0.2/bin/mqsilist
/opt/ibm/mqsi/9.0.0.2/bin/mqsilist: error while loading shared libraries: libImbCmdLib.so: cannot open shared object file: No such file or directory
Ooops - try this first: -
source /opt/ibm/mqsi/9.0.0.2/bin/mqsiprofile
MQSI 9.0.0.2
/opt/ibm/mqsi/9.0.0.2
/opt/ibm/mqsi/9.0.0.2
/opt/ibm/mqsi/9.0.0.2/bin/mqsilist
BIP1281I: No brokers have been defined on this machine.
BIP8071I: Successful command completion.
BIP8071I: Successful command completion.
Set up profile for future
echo "source /opt/ibm/mqsi/9.0.0.2/bin/mqsiprofile" >> ~/.bashrc
Job's a good 'un. Now to go and download the IIB Toolkit .....
Thanks to these resources for inspiration: -
No comments:
Post a Comment