0

I am using Spring and have 2 MQQueues. I need to check the maximum capacity using only JMS. In other words lets say someone configured 1 MQQueue to have maximum capacity of 4000 message, I need to be able to check that configuration.

Is it possible only using JMS or must I have direct access to MQQueues and use MQQueue java libraries?

Justin Bertram
  • 29,372
  • 4
  • 21
  • 43
linkrok
  • 65
  • 7

1 Answers1

0

The JMS API doesn't define any administrative methods to check configuration details like the maximum capacity of a queue. Therefore, you'll need to use a proprietary method to retrieve this information.

Justin Bertram
  • 29,372
  • 4
  • 21
  • 43
  • so if I am understandsting correctly I need to go through MQQueue library ? – linkrok Jan 17 '19 at 12:50
  • I don't see any methods on the [MQQueue object](https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_9.0.0/com.ibm.mq.javadoc.doc/WMQJMSClasses/com/ibm/mq/jms/MQQueue.html) to get the maximum capacity so I believe you'll need to use some other administrative operation to get that information. – Justin Bertram Jan 17 '19 at 14:05