Hello,
I am working on an application that is using ActiveMQ 5.16.3 and I am tasked 
with implementing a feature that should pause the whole message process.

In the application we have producers and message driven beans as consumers. The 
goal is to stop the consumption of messages as well as the acceptance of new 
messages in the queues.
At first, I was hoping that pausing a queue would do exactly that, but I 
quickly learned that that only stops messages from being delivered.
And now I need an option to also prevent queues from accepting new messages.

What I am trying to achieve in the end is somewhat like this existing thread
https://lists.apache.org/thread.html/r615e1b6c2cdf6341ac69935f24190a865147b32e3b95dfb35c86383e%40%3Cusers.activemq.apache.org%3E
But the proposed solution with multiple brokers and a failover is not 
applicable/feasible in our use case.

So far, the only other option I found is to stop the complete broker by 
stopping the windows service.
But this obviously creates new challenges since we can no longer get 
information on the size of the queues for example.

Is there another way to stop the consumption and creation of messages?
Ideally with an instant exception when a sent is attempted on a queue that is 
stopped?

Any help/hints are greatly appreciated

Regards
Hannes

 [cid:tangro-logo-cyan-rgb_cc8f5a9b-fee1-495e-878a-457c4b170988.png]

Hannes Bauer
Entwicklung
h...@tangro.de<mailto:h...@tangro.de>
Fon +49 6221 1333 666
www.tangro.de<http://www.tangro.de>

        <https://www.linkedin.com/company/3731516/> 
[cid:linkedin_cyan_Flche_c8d1d8e0-819d-446d-a928-19e3f92da84a.png] 
<https://www.linkedin.com/company/3731516/> 
[cid:xing_cyan_Flche(1)_3aa617c4-0f52-4b4f-9e00-9fac40d37193.png] 
<https://www.xing.com/companies/tangrosoftwarecomponentsgmbh> 
[cid:youtube_cyan_Flche_bbde269b-c7da-48df-b3a9-3ec7dfe09432.png] 
<https://www.youtube.com/channel/UCsxrvLKxYpQ-KYK8uGQ8tVQ> 
[cid:Twitter-Icon_cyan-Flche_14719373-0a07-425c-88a4-31303fb01996.png] 
<https://twitter.com/tangro_software> 
[cid:tangro_newsletter_icon_rgb57-176-201_139x42_7758a315-d1ec-4829-adce-36eea7130bda.gif]
 <https://www.tangro.de/newsletter/> <https://www.tangro.de/newsletter/>

tangro software components gmbh, Speyerer Stra?e 4, 69115 Heidelberg
Gesch?ftsf?hrer: Andreas Schumann, Registergericht: Mannheim, HRB 336064 (Sitz: 
Heidelberg)

Reply via email to