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





18 comments:

  1. Can we use Hermes jms using Soap UI for pushing/ Polling messages to MQ

    ReplyDelete
    Replies
    1. Yes, we can for that we need to configure Hermes JS in SOAP UI.
      https://engineeernitesh.blogspot.com/2017/02/how-to-configure-hermesjms-in-soap-ui.html

      Delete
  2. Hi,
    there's a way to set default value to field?
    for example, i want that when i open RfhUtil, automatically the field MQ Message Format will be set to MQSTR.
    My interest is with the fields in MQMD tab:
    MQ Message Format
    Code Page
    Reply to Queue Manager
    Reply To Queue

    ReplyDelete
  3. While trying to record RFHUtil using VUgen (HP Load Runner) , the program stops working and crashes the session of RFHUtil. Any suggestion

    ReplyDelete
  4. Hi there, Where can I download RFHUtil tool for Windows from? Thanks.

    ReplyDelete
  5. How to connect rfhutil with docker container hosted ibm mq

    ReplyDelete