MQ

 View Only
  • 1.  CCDT in JSON for multi-instance queue managers

    Posted Wed April 06, 2022 02:18 PM
    Hello!
    I need to create a simple CCDT JSON for Multi-instance.
    I thought that perhaps there was a single element called "connectionNameList" but I could not find it.
    Thus, it seems to me that I need to have multiple lines to specify the 2 pairs of host/port.
    .
    That is, the following works fine for 1 standalone queue manager:
    "connection": [
    {
    "host": "fortin1.fyre.ibm.com",
    "port": 1414
    }
    ],

    then I tried the following but it gives an rc 2058:

    "connection": [
    {
    "host": "fortin1.fyre.ibm.com",
    "port": 1414
    }
    {
    "host": "orizaba1.fyre.ibm.com",
    "port": 1414
    }
    ],

    The online doc does not have a concrete example.
    I searched Google and same result. No hits.

    Here is the complete CCDT in JSON:

    {
    "channel": [
    {
    "name": "SYSTEM.DEF.SVRCONN",
    "clientConnection": {
    "connection": [
    {
    "host": "fortin1.fyre.ibm.com",
    "port": 1414
    }
    {
    "host": "orizaba1.fyre.ibm.com",
    "port": 1414
    }
    ],
    "queueManager": "QMMI1"
    },
    "type": "clientConnection"
    }
    ]
    }

    Thank you in advance!
    Angel

    ------------------------------
    Angel Rivera
    IBM MQ Support
    Research Triangle Park NC
    ------------------------------


  • 2.  RE: CCDT in JSON for multi-instance queue managers

    Posted Wed April 06, 2022 02:54 PM

    Thanks to Matt Whitehead, who pointed out that I was missing a comma between the first host/port and the 2nd.
    Here is the corrected excerpt, which worked fine!
    "connection": [
    {
    "host": "fortin1.fyre.ibm.com",
    "port": 1414
    },
    {
    "host": "orizaba1.fyre.ibm.com",
    "port": 1414
    }
    ],

    Thanks!



    ------------------------------
    Angel Rivera
    IBM MQ Support
    Research Triangle Park NC
    ------------------------------



  • 3.  RE: CCDT in JSON for multi-instance queue managers

    IBM Champion
    Posted Thu April 07, 2022 08:09 AM

    Hence the need of some JSON editor program to allow to read and write the JSON but present it in a more "traditional" form visually...

    Or at least some verification program that can pinpoint the error...i.e. give a clue.



    ------------------------------
    Francois Brandelik
    ------------------------------



  • 4.  RE: CCDT in JSON for multi-instance queue managers

    Posted Thu April 07, 2022 11:09 AM
    There is a good online tool for that already, available here: https://jsonformatter.org/
    It will identify errors in the json, but it can also "beautify" it or make it more compact.


    ------------------------------
    James E. (Jim) Berube
    Technical Account Manager (TAM) - Specialist, IBM Expertise Connect, IBM Expert Labs
    IBM Software
    ------------------------------