5 Replies Latest reply on Mar 24, 2014 11:35 AM by jbertram

    Topic implementation in JBoss 6

    sankalp.madaan

      Hello everyone,

       

      I am implementing publisher subscriber model of messaging using a topic. There are two subscribers say A and B subscribed to this topic I have set maximum delivery attempts to 5. I have 1 basic question regarding this architecture.

       

      Suppose  subscriber A is down i.e. message is not delivered to this client. Topic will try re delivering the message for 5 times. My question is during this time, client B will sit idle or the next message in the sequence will deliver to client B?

       

      Thanks in Advance.

        • 1. Re: Topic implementation in JBoss 6
          jbertram

          Is "subscriber A" durable?  If so, the broker will just put the message in the subscription whether or not the client is connected.  If not, then there is no subscription to speak of.

          • 2. Re: Topic implementation in JBoss 6
            sankalp.madaan

            Both the clients A and B have durable subscription. Suppose message 1 is not delivered to A (because it was down), redelivering process is happening. But message 1 was delivered to B. So question is while the redelivering process is on its way, will message 2 will be delivered to subscriber B in the meanwhile?

            • 3. Re: Topic implementation in JBoss 6
              jbertram

              If client A closed it's connection properly then HornetQ will know that it is not active so when it puts the message into subscription A then no delivery attempt will be made.

              • 4. Re: Topic implementation in JBoss 6
                sankalp.madaan

                Sorry Justin for being not clear in my query. Actually my MDB is never down. In MDB, I am sending the message to some outside party using a web service and on the basis of response I am getting, I am doing rollback for the transaction. So question is while the redelivering process is on its way, will message 2 will be delivered to subscriber B in the meanwhile?

                • 5. Re: Topic implementation in JBoss 6
                  jbertram

                  So question is while the redelivering process is on its way, will message 2 will be delivered to subscriber B in the meanwhile?

                  Yes.