Hi, is it possible to get actual number of messages in a queue with JCSMP API ? I want to monitor that number each 5 sec.
Queue message count is not available in the messaging APIs like JCSMP. However, they are available in the management APIs. SEMPv2 includes a series of Monitoring APIs over REST just for this purpose.
SEMP API Reference (solace.com)
Note that the user in SEMP is not a client username but a management user.
Management & Shell Users (solace.com)