activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sinus <>
Subject How to find if the topic is empty ?
Date Wed, 12 Aug 2009 11:53:51 GMT

Hello to everybody,
I have a java application that uses activemq 5.2. A batch file starts the
broker, create subscribers and register the listeners to the topic. The same
bath is responsible for stoping the process. During the stop operation I
must perform a check on the state of the topic. If there are some messages
in the topic, the application must wait all the messages to be consumed and
only after this, close the subscribers and the broker.
So, how can I check the state of the topic on the presence of the messages
in it ?


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message