1/6/2024 0 Comments Delete .mq file secure![]() Parsing MQ error logs in Splunk December 19, 2017.When deprecated != deprecated January 19, 2018.Client-based runmqsc gotcha May 3, 2018.MQ Safety Tips for the Pandemic April 5, 2020.IBM MQ IA94 supportpac - IBM Message Service Client (XMS) for C/C++ for Windows x86-64 July 13, 2022.IBM MQ MP1B supportpac - Interpreting accounting and statistics data, and other utilities July 13, 2022.IT41848: CACHEMANAGER MEMORY USAGE COUNT GETS NEGATIVE August 25, 2022.IT41850: QUEUEFILE MIGRATION PROCESS DOES NOT STOP August 25, 2022.IT41851: INSTALLER CANNOT UPGRADE EXISTING INSTALLATIONS WITHIN /OPT/MQM/ August 25, 2022.IT41852: STARTING 1000 USER APPLICATION PROCESSES SIMULTANEOUSLY GENERATES FDCS WITH ZRCC_E_ZCG_SERVER_CONNECTIONS_EXHAUSTED August 25, 2022.IT41853: QMGR DR NOT SAVING DATA FROM ALTERED SSLKEYR LOCATION August 25, 2022.Enabling a non-mqm username to manage an IBM MQ Replicated Data Queue Manager (RDQM) August 26, 2022.IT33223: Connection to a queue manager with a userid less than 12 character in the form of results in AMQ8074W.IT41354: IBM MQ 9.2 client might report a memory segmentation fault when JSON format CCDT file used along with TLS August 26, 2022.IT41422: IBM MQ for Linux writes FDC from 32-bit application reporting XC035011 and errno 22 from pthread_create August 26, 2022.Logger("Usage: java MQDeleteChannel01 -m QueueManagerName -z Channel_Name_to_be_deleted -h host -p port -c channel -u UserID -x Password") MQDeleteChannel01 mqcq = new MQDeleteChannel01() (LOGGER_TIMESTAMP.format(new Date())+" "+className+": "+Thread.currentThread().getStackTrace().getMethodName()+": "+data) If ( (className != null) & (className.lastIndexOf('.') != -1) )ĬlassName = className.substring(className.lastIndexOf('.')+1) String className = Thread.currentThread().getStackTrace().getClassName() Logger("CC=" +e.completionCode + " : RC=" + e.reasonCode) Logger("Exception:" +e.getLocalizedMessage()) Logger("MQDataException:" +e.getLocalizedMessage()) Logger("IOException:" +e.getLocalizedMessage()) Logger("CC=" +e.completionCode + " : RC=" + e.reasonCode + " ") Logger("CC=" +pletionCode + " : RC=" + pcfe.reasonCode + " ") Logger("Error: The channel '" + chlName+ "' does not exists on the queue manager '" + qMgrName + "'.") If (pcfe.reasonCode = MQConstants.MQRC_UNKNOWN_OBJECT_NAME) Logger("successfully deleted channel: " + chlName) Request.addParameter(MQConstants.MQCACH_CHANNEL_NAME, chlName) Specify the channel name to be deleted. Request = new PCFMessage(MQConstants.MQCMD_DELETE_CHANNEL) Logger("successfully connected to "+ qMgrName) QMgr = new MQQueueManager(qMgrName, mqht) String chlName = (String) params.get("-z") String qMgrName = (String) params.get("-m") * Handle connecting to the queue manager, issuing PCF command then I don't want to see MQ exceptions at the console. Mqht.put(CMQC.PASSWORD_PROPERTY, params.get("-x")) Mqht.put(CMQC.USER_ID_PROPERTY, params.get("-u")) Mqht.put(CMQC.PORT_PROPERTY, new Integer(port)) Mqht.put(CMQC.HOST_NAME_PROPERTY, params.get("-h")) Mqht.put(CMQC.CHANNEL_PROPERTY, params.get("-c")) Port = Integer.parseInt((String) params.get("-p")) If (args.length > 0 & (args.length % 2) = 0) Private void init(String args) throws IllegalArgumentException * Extract the command-line parameters and initialize the MQ HashTable. Integer.parseInt((String) params.get("-p")) * Make sure the required parameters are present.īoolean b = ntainsKey("-h") & ntainsKey("-p") & Private static final SimpleDateFormat LOGGER_TIMESTAMP = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss.SSS") * -m MQA1 -z Channel_Name_to_be_deleted -h 127.0.0.1 -p 1414 -c TEST.CHL -u UserID -x Password * This PCF code is equivalent to issuing the runmqsc command of: * This java class issues a PCF "delete channel" request message to delete a channel. You can download the source code from here. If you are used to deleting an IBM MQ channel using runmqsc command then the following simple Java/PCF program will delete a IBM MQ channel based on the following runmqsc command: DELETE CHL('TEST.CHL') So, if you require creating a channel via Java/PCF then you probably will need to delete a channel via Java/PCF. A couple of days ago, I posted a Java/PCF program that would create a IBM MQ channel.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |