IIB Tutorial
IIB Tutorial
com/
1 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
2 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
The below figure illustrates file-based authorization in IIB v10, that can
be used irrespective of whether Integration Node is associated to a
queue manager or not.
3 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
For file based security, access level is maintained using the file
Permissions, located in the path
<MQSI_WORKPATH>/registry/<IntNode>/CurrentVersion/Security
/node/<IntNode>/
Access is granted / revoked for system level users, who are specified as
Roles, using the command mqsichangefileauth
h p://www.ibm.com/developerworks/websphere/library/techarticles
/1603_gedupuri-trs/1603_gedupuri.html (h p://www.ibm.com
/developerworks/websphere/library/techarticles/1603_gedupuri-
trs/1603_gedupuri.html)
IBM Integration Bus v10 has introduced many new features. One of
the important feature, from my point of view, is the introduction of
Shared Library concept.
4 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
Reference: h p://www.ibm.com/support/knowledgecenter
/SSMKHH_10.0.0/com.ibm.etools.mft.doc/bc23067_.htm?lang=en
(h p://www.ibm.com/support/knowledgecenter/SSMKHH_10.0.0
/com.ibm.etools.mft.doc/bc23067_.htm?lang=en)
5 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
In the New Library window, specify the name for the library and
selecting the library type as “Shared Library”, click Finish
Below Images shows the Shared and Static libraries in the toolkit
6 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
When adding to the BAR file, Shared Libraries are displayed in the
BAR Editor separately and have to be selected explicitly for adding
to the bar file. This is not the case with Static Library as they are
added automatically when application referencing them is added
to BAR file.
7 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
Hope this blog provides insight into Shared Library feature of IIB 10.
Authentication Feature of MQ 8 –
Part 1
8 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
Authorization using the underling OS. In this blog, will try to cover
how MQ is providing Authentication feature.
9 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
10 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
REFRESH SECURITY
Authentication using OS
11 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
12 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
REFRESH SECURITY
That’s because, till previous version, i.e. IBM Integration Bus v9,
Integration Node was using the MQ’s publish/subscribe engine for all
its pub/sub activities, like Event Monitoring etc.
Now with the change in the architecture from v10, Integration Node
now comes with built-in MQTT broker thus allowing to use MQTT
lightweight publish/subscribe messaging protocol. You could also
choose to configure Integration Node to either use an external MQTT
server or MQ’s queue manager as pub/sub broker as an alternative to
default built-in MQTT server.
To view the port of the MQTT server of an Integration Node you could
13 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
(h ps://blogonibmesb.files.wordpress.com/2015/10/iibevents.jpg)
IBM Integration Bus Events Classification
Please note, message flow should be configured for emi ing monitoring events
(business events), which is not in the scope of this blog.
14 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
IBM/IntegrationBus/<IntNode>/Monitoring/<IntServer>
/<MsgFlowName>/
(h ps://blogonibmesb.files.wordpress.com/2015/10/mq subscribe.jpg)
IBM Integration Bus v10 – Using MQTTSubscribe
From IIB v10, IBM has removed the dependency of Integration Node /
Broker on WebSphere MQ, by making it as optional product.
Considering the operational dependency that Integration Node /
Broker had on MQ in all its earlier version, I would say this is major
architectural change for IIB. By doing so, what has happened is the
15 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
IBM WebSphere MQ
IBM Integration Toolkit
IBM Integration Bus (Runtime Component)
IBM Integration Explorer
IE02 – ODBC Extender (not required for Windows though)
(h ps://blogonibmesb.files.wordpress.com/2015/10/image11.jpg)
IBM Integration Bus v10 Linux Installation – Creating IBM folder in
/opt
Place the IIB v10 Linux installation archive into /opt/IBM folder as
shown
(h ps://blogonibmesb.files.wordpress.com/2015/10/image2.jpg)
IIB v10 Linux Installation – Place installation file in /opt/IBM
16 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
directory
(h ps://blogonibmesb.files.wordpress.com/2015/10/image3.jpg)
IBM Integration Bus v10 Linux Installation – Extract the package using
tar command into /opt/IBM
(h ps://blogonibmesb.files.wordpress.com/2015/10/image4.jpg)
IBM Integration Bus v10 Linux Installation – Creating shared
Installation
The above step creates the group mqbrkrs, if not existing, and the
/var/mqsi folder. Verify the same as shown below
17 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
(h ps://blogonibmesb.files.wordpress.com/2015/10/image5.jpg)
IBM Integration Bus v10 Linux Installation – Verifying group mqbrkrs
& /var/mqsi creation
(h ps://blogonibmesb.files.wordpress.com/2015/10/image6.jpg)
IBM Integration Bus v10 Linux Installation – Verifying /var/mqsi
creation
18 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
(h ps://blogonibmesb.files.wordpress.com/2015/10/image8.jpg)
IBM Integration Bus v10 Linux Installation – Verifying Installation –
Part 1
(h ps://blogonibmesb.files.wordpress.com/2015/10/image9.jpg)
IBM Integration Bus v10 Linux Installation – Verifying Installation –
Part 2
This completes the installation of IIB v10 on Linux. Next steps would
be to create IIB user account and configure the user profile for running
IIB commands. This could be done by editing the .bash_profile file of
the user and adding the following statement to it.
. /opt/IBM/iib-10.0.0.0/server/bin/mqsiprofile
19 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
This blog covers the steps required for configuring ODBC connectivity
to remote database for Integration node running on Linux Server, in
IBM Integration Bus v9. The steps are illustrated using Oracle XE
Database.
1. Create a new directory, say /odbc, to place the ODBC related ini
files and configuring them to our requirement.
(h ps://blogonibmesb.files.wordpress.com/2015/07/image1.jpg)
User Defined ODBC directory
Copy the odbc.ini & odbcinst.ini sample files supplied with IIB
Runtime component, located in <IIB_Install_dir>/ODBC
/unixodbc/ directory, to the /odbc directory we had created for the
purpose. Each broker service user ID on the system can therefore
use its own DSN definitions.
(h ps://blogonibmesb.files.wordpress.com/2015/07/image2.jpg)
20 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
(h ps://blogonibmesb.files.wordpress.com/2015/07/image3.jpg)
Copying Sample ODBC files provided with IIB to the user defined
/odbc directory
(h ps://blogonibmesb.files.wordpress.com/2015/07/image4.jpg)
Changing the ownership of /odbc/odbc.ini file to mqbrkrs group and
se ing permission level to 664
(h ps://blogonibmesb.files.wordpress.com/2015/07/image5.jpg)
Changing the ownership of /odbc/odbcinst.ini file to mqm user &
mqbrkrs group
Login to the IIB Admin user account, say iibadmin, and configure
the user’s profile file to set the ODBC related environment variables
– ODBCINI & ODBCSYSINI
21 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
(h ps://blogonibmesb.files.wordpress.com/2015/07/image7.jpg)
Se ing the ODBC environment variables in the IIB administrator
profile file .profile (or) .bash_profile in the user’s home directory
Edit the odbc.ini file, in /odbc folder to edit the last stanza of it to
specify the required driver details and adding the required DSN
entry for the Oracle XE database
(h ps://blogonibmesb.files.wordpress.com/2015/07/image9.jpg)
Adding ODBC DSN entry for Oracle database in the ODBC.ini
22 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
(h ps://blogonibmesb.files.wordpress.com/2015/07/image10.jpg)
DSN entry added to /odbc/odbc.ini specifying Oracle database
connection details
Login to the IIB Server using the IIB administrator user id, say
iibadmin, and start the Integration Node, if not running already
Associate the ODBC DSN to the Integration node using the
mqsisetdbparms command as shown below and enter the db2
password when prompted.
mqsisetdbparms <Integration Node> -n <DSN Name> -u <DB user>
(h ps://blogonibmesb.files.wordpress.com/2015/07/image11.jpg)
Associating ODBC DSN to Integration Node
23 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
(h ps://blogonibmesb.files.wordpress.com/2015/07/image12.jpg)
Verifying Integration Node’s connectivity to database usingspecified
DSN
Please note this blog entry will focus on steps to enable remote
connection to queue manager in non-production environments (esp.
development / test) and is not suitable for production or secured
environments. This is due to the fact that security aspects / details
required are not covered in this blog.
24 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
Note: This step is applicable for Queue Managers from v7.1 onwards only. For
QM on earlier version, this step can be omi ed.
(h ps://blogonibmesb.files.wordpress.com/2015/06
/qmgralter_chlauth.jpg)
Altering CHLAUTH a ribute of Queue Manager
Once this has been disabled, you need to create following objects in
QM1 for remote connectivity (applies to QM on any version)
You can use the following steps to create the objects in script window
of the Queue Manager
1. For creating TCP Listener in QM1 to listen on port 1616 and starting
it use the below command
Command Syntax:
25 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
START LISTENER(TCP.LISTENER)
(h ps://blogonibmesb.files.wordpress.com/2015/06/qmgrlistener.jpg)
Creation of Listener object for queue manager and starting it
Command Syntax:
In the above command, the MCAUSER a ribute of the channel specifies, the
user id that is to be used by queue manager for authorization the application
connecting using this channel. For illustration purpose and to avoid
authorization issues, user id ‘mqm’ is set in this a ribute
(h ps://blogonibmesb.files.wordpress.com/2015/06/qmgrsvrconn.jpg)
Creating Server Connection Channel on Queue Manager in MQ
Note:
26 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
Now that queue manager has been enabled, you can use MQ Explorer
from remote machine to connect to this queue manager specifying this
channel name and the connection details. Steps have been illustrated
below
(h ps://blogonibmesb.files.wordpress.com/2015/06
/mq-addingremoteqm.jpg)
MQ – Adding Remote QM from Explorer
Specify the name of the Queue Manager and selecting the option
“Connect Directly”, click Next
27 of 28 15/11/2016 1:13
Yuvaraj's Blog on IBM ESB | Technical Blog to share or discuss on W... https://blogonibmesb.wordpress.com/
(h ps://blogonibmesb.files.wordpress.com/2015/06/mq-addingqm.jpg)
MQ – Adding Remote QM from Explorer Step 2
(h ps://blogonibmesb.files.wordpress.com/2015/06
/mq-qmconnectiondtls.jpg)
MQ- Remote QM Connection Details from Explorer
(h ps://blogonibmesb.files.wordpress.com/2015/06/mq-qmadded.jpg)
MQ – Remote QM Added in Explorer
Stay tuned for Part-2 of this blog, that will cover enabling remote
connection using Channel Authentication Records and connecting
using non-administrative user id.
28 of 28 15/11/2016 1:13