Showing posts with label How to use RFHUTILC.EXE to connect to a remote queue manager. Show all posts
Showing posts with label How to use RFHUTILC.EXE to connect to a remote queue manager. Show all posts

Monday, 13 February 2017

How to use RFHUTILC.EXE to connect to a remote queue manager

How to use RFHUTILC.EXE to connect to a remote queue manager


RfhUtil is IBM WebSphere MQ Client, use for read data from files and/or queues; write data to files and/or queues and display data in a variety of formats. However, it is not an editor. While the user data portion of the message can be displayed in a variety of formats, it cannot be changed. 

Prerequisite: 

1. Remote system installed with IBM WebSphere MQ.
2. System have RfhUtil Client.

Step 1: Create Queue manager on Remote system and check below option during creation of Queue Manager.

How to use RFHUTILC.EXE to connect to a remote queue manager

If you already have Queue Manager than check if SYSTEM.ADMIN.SVRCONN channel exists or not.
How to use RFHUTILC.EXE to connect to a remote queue manager

How to use RFHUTILC.EXE to connect to a remote queue manager

If value not showed Exists than click on Create.

Step 2: Create Queue in newly created Queue Manager.

Step 3: Create new System variable in the system from where you want to connect Remote Queue manager.

How to use RFHUTILC.EXE to connect to a remote queue manager

Variable name : MQSERVER
Variable value : SYSTEM.ADMIN.SVRCONN/TCP/IP address of remote system(listener port of Queue manager)

Step 4: Open rfhutilc.exe

How to use RFHUTILC.EXE to connect to a remote queue manager

Step 5: Give Queue manager name as created new system variables. Click on Load names, it will display all Queue name which you have created on remote system.

How to use RFHUTILC.EXE to connect to a remote queue manager

Step 6: Write data to queue. Click on open file and pass  text file or XML file with some value. Go to MQMD tab and choose "MQSTR" for MQ Message format.

How to use RFHUTILC.EXE to connect to a remote queue manager


Step 7: Read data from Queue.

How to use RFHUTILC.EXE to connect to a remote queue manager


Note : If error 2035 is returned you will need to add a authorised user id to the MCA field of the target queue. I will post solution in my further post.


Related Topic:

Spring jms code with ibm websphere mq example