|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to get the connection count on queue Manager thru Java |
« View previous topic :: View next topic » |
Author |
Message
|
lbethi |
Posted: Tue Apr 01, 2008 5:49 pm Post subject: How to get the connection count on queue Manager thru Java |
|
|
Newbie
Joined: 01 Apr 2008 Posts: 1
|
I am able to get all the other statistics of queue through the direct methods provided on Queue object. But I am unable to find any clue on how to get connection count on Queue Manager. I am able to see that value through MQ windows Explorer and also through runmqsc command.
import com.ibm.mq.*;
private String getConfigurations(String hostName, String qManager, String qName,
String channel, String portNo) throws Exception {
MQQueueManager queueManager = null;
MQQueue myQueue = null;
StringBuffer responseBuffer=null;
String response=null;
try {
MQEnvironment.hostname = hostName;
MQEnvironment.port = Integer.parseInt(portNo);
MQEnvironment.channel = channel;
queueManager = new MQQueueManager(qManager);
myQueue = queueManager.accessQueue(qName, MQC.MQOO_INQUIRE | MQC.MQOO_INPUT_AS_Q_DEF, null, null, null);
}catch(Exception e){
}
}
operating system: windows
language: java |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Apr 01, 2008 6:15 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Try support pack MS0B  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|