Joke Collection Website - Public benefit messages - In JAVA development, how to query the queue handle status in MQ?
In JAVA development, how to query the queue handle status in MQ?
Do you use IBM MQ or Apache? It can generally be obtained through JMS of JAVA.
For example, there is an MQQueue object in IBM MQ.
//Get the queue instance
MQQueue QUEUE = qmgr . access QUEUE(" TEST _ QUEUE ",open options);
//Gets the length of the longest message in the current queue.
queue.getMaximumMessageLength()
//Get the maximum depth of the current queue.
queue.getMaximumMessageLength()
It also provides other functions. Specifically, you can download a WebSphere MQ API and find MQQueue at a glance.
- Related articles
- Words of encouragement to children
- What does CCB LKTE mean?
- Whatsapp If SMS authentication fails, is mobile phone authentication a roaming call?
- What is Tianyi E-commerce Orange Installment? A brief introduction to
- Sentences describing cool weather in autumn; A short sentence describing the cool weather in autumn.
- Why does China Telecom always send a message saying that I have been to medium and high risk and give it a yellow code?
- Shaanxi Province 20 13 College Entrance Examination Time
- Big talk 2 detailed introduction of planting trees
- What is the best love to keep in mind?
- My girlfriend found out that I was having an affair with another girl, and now she wants to break up. How can I make it right? (Waiting online, urgent)