Java or Administration message

In the Java interface, the presence of a field in the request message means that see the value the field that field failed in.

//inquire
 
//Request the value of description 
try {
   MQeAdminMsg msg = (MQeAdminMsg) new MQeQueueManagerAdminMsg();
//Prime admin message with targetQM name, reply to queue, and so on
//refer to chapter 2 for details
 
   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)
//refer to chapter two for details
} 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());
 }


© IBM Corporation 2002, 2003. All Rights Reserved