Call Me at +91 7798846928 for Trainings

My photo
I am a Middleware Trainer and Consultant for Websphere (WAS, MQ), Weblogic, SOA and JBOSS Administration. Drop a mail to kvn@live.in for trainings and videos or call on +91 7798846928 for details.

Sunday, March 2, 2014

How to install Websphere MQ on Windows Host and get started ?

1. Ensure you have Admin access on Windows platform.
2. Open command prompt as admin, type HOSTNAME and hit the enter.
3. MQ Series full installation needs 900 MB of free disk space. So ensure we have it before you try. In cmd window type dir|find "free", it should give free bytes available on host.
4. Find if it is a 32 bit platform or 64 bit platform and check system type by typing systeminfo in cmd.
5. Download suitable version of MQ software (32/64 bit), from IBM portal.
6. Unzip IBM MQ Build downloaded.
7. Locate MQLaunch.exe and execute it.
8. In order to install MQ 7.0/1 you will need version 3.x Eclipse to be pre-installed on host. Otherwise Install it from MQinstallationsource/prereq/IES/setup.exe and then










9. Type DSPMQVER on cmd to confirm installation is successful. Version of MQ installed on host is printed.

How to start IBM MQ service from command prompt?

NET START "IBM MQSeries"

Now in command prompt type the following:
1. CRTMQM <QMGRNAME 8 chars>, will create a Queue manager (QMGR).
2. DSPMQ -M <QMGRNAME>, will display the status of QMGR created.
3. STRMQM <QMGRNAME>, will start the QMGR.
4. RUNMQSC <QMGRNAME>, will get you  into QMGR cotrol, where in you can further create other MQ objects and play around it.

How to stop IBM MQ service from cmd window?

NET STOP "IBM MQSeries"

How to put messages on business queue or local queue?

1. Open command prompt.
2. Type AMQSPUT <QUEUENAME> <QMGQNAME> and hit the enter key. type messages one after the other and keep hitting enter after end of every message.
Example input:
msg1
msg2
msg3
msg4
..

AMQSPUT: is a sample MQ program (provided along with MQ Series software installation package) to put messages onto the business queue.

How to identify the number of messages already on the business queue?

1. Open command prompt.
2. Type RUNMQSC <QMGRNAME>
3. Now type DISPLAY QLOCAL(<business queue created under QMGRNAME>) CURDEPTH
Here CURDEPTH property represents the number of meggages already on the queue.
4. Type END, to exit from QMGR control.

How to get messages hosted from a business queue?

1. Open command prompt.
2. Type AMQSGET <QUEUENAME> <QMGRNAME> and hithe enter key.
Example output:
msg1
msg2
msg3
msg4
..

AMQSGET: is a sample MQ program to retrieve messages from the business queue (also known as local queue).

How to stop the Queue Manager?

Open command prompt. Type ENDMQM -I <QMGRNAME>

NOTE: Value between <> braces should have meaningful names for queue managers and queues. In real world JAVA/.NET/Mainframe applications will be on either side of MQ Server (QMGR) instead of AMQSPUT and AMQSGET programs.

Follow the below blog-post after installation:
http://middlewareprofessionalkvn.blogspot.in/2014/02/websphere-mq-basicsfundamentals.html