How to use the ibmmq.Disc function in ibmmq

To help you get started, we’ve selected a few ibmmq examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ibm-messaging / mq-mqi-nodejs / tests / amqsgetar.js View on Github external
mq.Close(hObj, 0, function (err) {
    if (err) {
      console.log(formatErr(err));
    } else {
      console.log("MQCLOSE successful");
    }
    mq.Disc(hConn, function (err) {
      if (err) {
        console.log(formatErr(err));
      } else {
        console.log("MQDISC successful");
      }
    });
  });
}
github ibm-messaging / mq-mqi-nodejs / samples / amqsconn.js View on Github external
sleep(3 *1000).then(() => {
      mq.Disc(conn, function(err) {
        if (err) {
          console.log(formatErr(err));
        } else {
          console.log("MQDISC successful");
        }
      });
    });
  }
github ibm-messaging / mq-mqi-nodejs / samples / amqsdlh.js View on Github external
mq.Close(hObj, 0, function(err) {
    if (err) {
      console.log(formatErr(err));
    } else {
      //console.log("MQCLOSE successful");
    }
    mq.Disc(hConn, function(err) {
      if (err) {
        console.log(formatErr(err));
      } else {
        //console.log("MQDISC successful");
      }
    });
  });
}
github ibm-messaging / mq-mqi-nodejs / samples / amqsbra.js View on Github external
mq.Close(hObj, 0, function(err) {
    if (err) {
      console.log(formatErr(err));
    } else {
      console.log("MQCLOSE successful");
    }
    mq.Disc(hConn, function(err) {
      if (err) {
        console.log(formatErr(err));
      } else {
        console.log("MQDISC successful");
      }
    });
  });
}
github ibm-messaging / mq-mqi-nodejs / samples / amqsput.js View on Github external
mq.Close(hObj, 0, function(err) {
    if (err) {
      console.log(formatErr(err));
    } else {
      console.log("MQCLOSE successful");
    }
    mq.Disc(hConn, function(err) {
      if (err) {
        console.log(formatErr(err));
      } else {
        console.log("MQDISC successful");
      }
    });
  });
}
github ibm-messaging / mq-mqi-nodejs / samples / amqssub.js View on Github external
mq.Close(hObjPubQ, 0, function(err) {
    if (err) {
      console.log("MQCLOSE (PubQ) ended with reason " + err.mqrc);
    } else {
      console.log("MQCLOSE (PubQ) successful");
    }
    mq.Disc(hConn, function(err) {
      if (err) {
        console.log("MQDISC ended with reason " + err.mqrc);
      } else {
        console.log("MQDISC successful");
      }
    });
  });
}
github ibm-messaging / mq-mqi-nodejs / samples / amqsget.js View on Github external
mq.Close(hObj, 0, function(err) {
    if (err) {
       console.log(formatErr(err));
    } else {
      console.log("MQCLOSE successful");
    }
    mq.Disc(hConn, function(err) {
      if (err) {
        console.log(formatErr(err));
      } else {
        console.log("MQDISC successful");
      }
    });
  });
}
github ibm-messaging / mq-dev-patterns / Node.js / basicsubscribe.js View on Github external
mq.Close(hObjPubQ, 0, function(err) {
    if (err) {
      debug_warn("MQCLOSE (PubQ) ended with reason " + err.mqrc);
    } else {
      debug_info("MQCLOSE (PubQ) successful");
    }
    mq.Disc(hConn, function(err) {
      if (err) {
        debug_warn("MQDISC ended with reason " + err.mqrc);
      } else {
        debug_info("MQDISC successful");
      }
    });
  });
}
github ibm-messaging / mq-dev-patterns / Node.js / basicget.js View on Github external
return new Promise(function resolver(resolve, reject){
    if (1 == connCount) {
      mq.Disc(hConn, function(err) {
        if (err) {
          debug_warn('Error disconnecting', err);
        } else {
          debug_info("MQDISC successful");
        }
        resolve();
      });
    } else {
      resolve();
    }
  });
}