
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 query messages, to send them to your blockchain network, and to receive and process the replies.
Use the configuration file that you created in the previous task, to run the IBM MQ Bridge to blockchain.
Procedure
- Start the z/OSĀ® queue manager to use with the bridge.
-
Start the IBM MQ Bridge to blockchain to connect to your blockchain
network and your z/OS queue manager.
Run the bridge script from the bin directory of the location where you
unpacked the bridge when you moved it from your z/OS
environment in task Configure IBM MQ Advanced for z/OS VUE for use with blockchain.
./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:Fri Oct 06 06:32:11 PDT 2017 IBM MQ Bridge to Blockchain 5724-H72 (C) Copyright IBM Corp. 2017, 2020. Fri Oct 06 06:32:17 PDT 2017 Ready to process input messages.
- Optional:
Troubleshoot connections to your z/OS queue
manager and to your blockchain network, if the messages that are returned after you run the bridge
indicate that a connection was not successful.
-
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. -
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.
-
Issue the command in debug mode with the debug option 1.
Results
You have started the IBM MQ Bridge to blockchain and connected to your queue manager and blockchain network.What to do next
- Follow the steps in Running the IBM MQ Bridge to blockchain client sample to format and send a query or update message to your blockchain network.
-
Use the MQBCB_EXTRA_JAVA_OPTIONS variable to pass in JVM properties, for example to enable IBM MQ tracing. For more information, see Tracing the IBM MQ Bridge to blockchain.