This content has been marked as final. Show 4 replies
You can use imqcmd, e.g. imqcmd query dst or imqcmd list dst
Ok, but.. i wanna do it inside my code.
There is currently no direct function in C-API to get queue size. However there are a number of different ways to get this information through MQ's monitor services
You can access these services in a C application either through system calls or JNI depending on the type of interface.
We've implemented a queueBrowser in a while loop that just goes through all the messages and counts them... Hope that helps!