• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
  • Frits Walraven
  • fred rosenberger
  • salvin francis

ActiveMQ - Durable subscriber question

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to test out the use of durable subscribers with activeMQ.

I create the subscriber

I then receive the message synchronously. No message as expected.
If use ActiveMQ web admin console, it shows the topic, with enqueue and dequeue of 0.

I then run the test to send messages, and then exits

The test exits and if I look at the ActiveMQ admin console, it now shows two messages enqueued, 0 dequeued
This seems ok

Finally i run the consumer test again. It receives the messages just fine. But again the ActiveMQ admin console shows two messages enqueued and , 0 dequeued.
It always shows 0 dequeued.

Any ideas on this? I even changed the test so that instead of doing a sync receive it used an async receive with a listener...but still the same behavior. The topic dequeued value is always 0 on the Topics base of the ActiveMQ web console.

Posts: 10445
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Stephanie, welcome to CodeRanch!

This discussion on the ActiveMQ list has an answer to this same question http://activemq.2283324.n4.nabble.com/Message-Dequeue-count-in-jconsole-0-even-after-messages-are-recieved-and-consumed-by-subscribers-td4675875.html
    Bookmark Topic Watch Topic
  • New Topic