Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6989785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:15:33+00:00 2026-05-27T19:15:33+00:00

I am using JMS (ActiveMQ) between a Topic Publisher and a variable number of

  • 0

I am using JMS (ActiveMQ) between a Topic Publisher and a variable number of Topic Subscribers.

I would have to check if, at a given moment in time, some of the subscribers are “offline” (disconnected, shutdown, unable to communicate, etc…).
Is there a way that JMS allows the publisher to know which subscribers are “registered”?

Right now, I have it implemented so that subscribers send an “alive” message on a specific Queue (acting as producers) and the publisher receives them (acting as a consumer): if it is detected that any of the subscribers didn’t “ping” for X seconds (threshold), it is assumed to be offline.
It works, but I was curious to know if I reinvented the wheel…

I know that this feature is not completely related to Messaging or Pub/Sub paradigm and I also know that Pub/Sub is specifically designed so that the publisher doesn’t have to worry about who/where/when its messages will be consumed….but I was wondering that, if it DID want to know, maybe there was a way.
After all, it doesn’t seem like a particularly uncommon usecase….

Thank you very much.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:15:33+00:00Added an answer on May 27, 2026 at 7:15 pm

    I don’t think there is a way to tell your publisher the information about the subscribers directly.

    what you should do is actually use AMQ advisory messages to keep track of the statuses of your subscribers. Read the article – it provides all the information you need.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're currentyly developping an application using JMS and activemq (5.5.1). We would like to
I have a system which contains multiple applications connected together using JMS and Spring
I have a jruby/rails app using: jruby 1.4.0 Rails 2.3.5 ActiveMQ 5.3.0 Mule ESB
We have an application that processes JMS message using a message driven bean. This
I'm new to JMS. I'm using ActiveMQ CPP (C++ version), but most probably my
We're using a messaging queue (JMS / ActiveMQ) in an application that is facilitating
I am very new to JMS and ESB. I am using activemq as JMS
I am sending the messages to Topic using oracle.jms.AQjmsFactory . The messages are stored
I build a REST web service (using JAX-RS, Spring, Spring JMS, and ActiveMQ). I'm
I have generic question on using JMS provided by JBoss 5.1. I deploy my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.