//inquire //Request the value of description try { //Prime admin message with targetQM name, reply to queue, and so on MQeAdminMsg msg = (MQeAdminMsg) new MQeQueueManagerAdminMsg(); parms = new MQeFields(); parms.putUnicode(MQeQueueManagerAdminMsg.QMgr_Description, null); //set the name of the queue to inquire on msg.setName("ExampleQM"); //Set the action required and its parameters into the message msg.inquire(parms); //Put message to target admin queue (code not shown) } catch (Exception e) { System.err.println("Failure ! " + e.toString()); }
//inquire all try { MQeAdminMsg msg = (MQeAdminMsg) new MQeQueueManagerAdminMsg(); //set the name of the queue to inquire on msg.setName("ExampleQM"); //Set the action required and its parameters into the message msg.inquireAll(new MQeFields()); } catch (Exception e) { System.err.println("Failure ! " + e.toString()); }
Parent topic: Inquire and inquire all