title: how can I make a queue allows only one consumer in ActiveMQ
body: <p>I want there is only zero or one consumer connected to a queue , if a new consumer want to connect to this queue , the previous consumer's connection will be closed and the new consumer will connect to this queue. How can I do that ?  Thanks for any help in advance.</p>