Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript forum!
  • 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 ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

ActiveMQ topic

 
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to get familiar with ActiveMQ topic. I created a publisher and subscriber, with topic that expires in 30 seconds

Here is the code for publisher:




See the last a few lines, I have made the topic "topic.Example" be persistent and called setTimeToLive(). Although a subscriber cannot receive a message that created longer than 30 seconds. I don't see ActiveMQ server admin automatically shows the expired topic "ActiveMQ.Advisory.Expired.topic.Example". Then how do I let subscriber know a topic message is expired and do something accordingly?

BTW, in the ActiveMQ server admin, all the topic's 'Messages Enqueued' column values are always ever incremented. Does this mean memory keep all messages around? Where and how do I setup its limit?

Thanks.
 
reubin haz
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can someone please give some advice? I created a topic messages on 'topic.Example' that expired in 30 seconds, but the server do not send a message automatically to subscriber that listens on 'ActiveMQ.Advisory.Expired.topic.Example'. Am I doing wrong somewhere or is this just how ActiveMQ behave?

Do I have to reply on Java to count expiration time to do something upon expiration?

Thanks.
 
Paddy spent all of his days in the O'Furniture back yard with this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic