[V9.1.0 Jul 2018]

Running the IBM MQ Bridge to blockchain

Run the IBM® MQ Bridge to blockchain to connect to IBM Blockchain and IBM MQ. When connected, the bridge is ready to process request messages, send them to your Hyperledger Composer blockchain network, and receive and process the replies.

About this task

Use the configuration file that you created in the previous task, to run the IBM MQ Bridge to blockchain.

Procedure

  1. Start the IBM MQ Advanced queue manager that you want to use with the bridge.
  2. Start the IBM MQ Bridge to blockchain to connect to your Hyperledger Composer REST server, and your IBM MQ Advanced queue manager.
    Run the bridge command.
    
    runmqbcb -f /config_file_location/config_file_name.cfg -r /log_file_location/logFile.log
    
    When the bridge is connected, output similar to the following is returned:
    
    2018-05-17 14:28:16.866 BST IBM MQ Bridge to Blockchain
    5724-H72 (C) Copyright IBM Corp. 2017, 2024.
    
    2018-05-17 14:28:19.331 BST Ready to process input messages.
    
  3. Optional: Troubleshoot connections to your IBM MQ Advanced queue manager and to your blockchain network, if the messages that are returned after you run the bridge indicate that a connection is not successful.
    1. Issue the command in debug mode with the debug option 1.
      runmqbcb -f /config_file_location/config_file_name.cfg -r /log_file_location/logFile.log -d 1
      The bridge steps through the connection set up and shows the processing messages in terse mode.
    2. Issue the command in debug mode with the debug option 2.
      runmqbcb -f /config_file_location/config_file_name.cfg -r /log_file_location/logFile.log -d 2
      The bridge steps through the connection set up and shows the processing messages in verbose mode. Full output is written to your log file.

Results

You have started the IBM MQ Bridge to blockchain and connected to your queue manager and blockchain network using your Hyperledger Composer REST server.

What to do next