I have created two queues MyFirstQueue
and MySecondQueue
in wso2 message broker. I am able to publish and consume messages using sample application given here.
Now using wso2 AndesAdminService
class, I want to fetch queue related information like number of queue created, number of messages in each queue, purge queue and etc..in my code.
I am not getting how should I introduce AndesAdminService
class in my code? And what other jars will be required ?
I have in my project the following jar files:
- andes-client-3.1.1.jar
- geronimo-jms_1.1_spec-1.1.0.wso2v1.jar
- log4j-1.2.13.jar
- org.wso2.carbon.logging-4.4.1.jar
- org.wso2.securevault-1.0.0-wso2v2.jar
- slf4j-1.5.10.wso2v1.jar
Please provide me sample code also.
I got AndesAdminService class code here.