0 Replies Latest reply on Sep 17, 2011 5:15 PM by mandarbk

    Get List of consumers for a Topic

    mandarbk

      Is it possible to retrieve a list of consumers listening on a Topic ?

       

      For ex, I have a topic configured on JBoss and number of message listeners are listening for messages on it.The requirement is to allow synchronous processing for certain types of messages while retaining the ability of async processing.

       

      High level design of message publisher is,

      Client --> Event(JMS Message) Publisher --> Topic --> MDB.

       

      Idea is if event publisher can determine the interested listeners( List<Class<MessageListener>>), it can explicitly invoke onMessage on the MDB object.

       

      Essentially I am looking at a method such as ,

       

      public List<Class<MessageListener>> getConsumersForTopic(String topicJndiName)