Hi,
Thanks for the reply.The Program i wrote is a multiple Program Which gives (Q Mgr Details,Channel Details ,and i want to get the Queue Details it is giving error.
System.out.println("Coming for Getting the Queue Details");
try{
int openOptions = MQC.MQOO_INPUT_SHARED |MQC.MQOO_FAIL_IF_QUIESCING | MQC.MQOO_SAVE_ALL_CONTEXT ;
int InhibitGet;
String dType="Nothing";
String qType="Nothing";
String iPut="Nothing";
String iGet="Nothing";
String share="Nothing";
String tControl = "Nothing";
String tType = "Nothing";
int qTypeNum=0;
// GregorianCalendar DateTime;
String Date;
String Time;
// MQQueueManager myQM = new MQQueueManager("STAR_SF_QM1");
// System.out.println("CONN="+myQM.isConnected());
// MQQueue queue = myQM.accessQueue("MUA_GW2SF_RES",openOptions,null,null,null);
// System.out.println("Connected to Queue");
// System.out.println("Curr Depth="+queue.getCurrentDepth());
com.ibm.mqbind.MQQueueManager queueManager = new com.ibm.mqbind.MQQueueManager("STAR_SF_QM1");
MQQueue bindqueue = queueManager.accessQueue("MUA_2SF_REQ",openOptions,"STAR_SF_QM1",null,null);
System.out.println(bindqueue.getCurrentDepth());