Java™

Inquire

//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

//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());
 }

Terms of use | WebSphere software

(c) Copyright IBM Corporation 2004, 2005. All rights reserved.