Beruflich Dokumente
Kultur Dokumente
MQ Was
MQ Was
[root@centos mq]#
It is Better to install all products/services, so execute rpm –ivh MQSeries*rpm. It will install
all MQ Packages.
Add MQ path in environment variables by editing .bash_profile for mqm and root users
Go to /home/mqm and do vim .bash_profile.
Append /opt/mqm/bin
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/opt/mqm/bin
export PATH
Name: WebSphere MQ
Version: 7.5.0.1
Level: p750-001-130308.1
InstName: Installation1
InstDesc:
InstPath: /opt/mqm
DataPath: /var/mqm
Primary: No
MaxCmdLevel: 750
[mqm@centos root]$
Create a test queue manager, queue and put a message and get message.
Now Integreate MQ with Websphere Application Server
Create a Queue manager, Queue, Listener, Channel
We have to add WAS running User to mqm Group and need to provide access to the
resources, In this machine was is owned by root. So root is adding to mqm.
[mqm@centos root]$
That’s it from MQ Side. Now Go to Admin console and create Queue connection factory/s, ques.
1) Log in to Admin console, go to Resources expand JMS=> click Queue Connection Factories
2) Click new to create new connection factory (Select Scope as per requirement) and click New
3) Here two options will come Default messaging provider and WebSphere MQ messaging
provider.
4) Select WebSphere MQ messaging provider ad click OK.
5) Enter Qcf name MQCF and JNDI as jms/MQCF and click Next ( All These values will give by
Application Teams)
6) In next section we will see two types of connections methods, Select first one “Enter all the
required information into this wizard” and click next.
7)
3) In the next Screen Enter Queue Name and jndi (Queuename may be anything) , Original Queue
Name created in MQ, and Queue Manager created in MQ.
4) Save and syncrinize.
5) Deploying a simple JMS application, This application is simple servlet to put message in queue
and get the messages from the same Queue.
6) In the admin console select install applications