7 Replies Latest reply on Apr 21, 2010 12:38 AM by Yong Hao Gao

    Message Ordering in JBoss

    Mayank Mittal Novice

      Hello All,

         We are using JBoss Messaing 1.4.2-SP1 with JBoss 4.2.3. Our application requirement is such that we want strict message ordering on topic, but some times we receives messages in order and sometimes not. Is there anything wrong in our configuration.

        • 1. Re: Message Ordering in JBoss
          Tom Ross Newbie

          Could you provide more details as to how do you consume your messages ?

           

          Tom

          • 2. Re: Message Ordering in JBoss
            Mayank Mittal Novice

            Hello Tom,

               We are consuming messages on a simple JMS client, listing to a topic. Actually the problem is, that, we are firing number of messages to the topic in a specific order, and number of times we  received those events in some other order of what they were actually fired.

               This causes, some wiered behavior of our client.

             

            Mayank

            • 3. Re: Message Ordering in JBoss
              Tom Ross Newbie

              Hi Mayank,

               

              You have to provide more information as to your applicaiton.

                   How many consumer/ producers do you have?

                   What sessions are you using transacted/notransacted?

                   How do you ack your messages?

                   Do you use selectors/message priority?

               

               

              Tom 

              • 4. Re: Message Ordering in JBoss
                Mayank Mittal Novice

                Hello Tom,

                   Our applications is some what informing other connected users about the operation performed by any of the user. Lets say any user changes some property of some object, then others should also be notified, so that, all users in the system, remains consitent with the sate of the server.

                  To achieve this, we uses JMS. Letz say User1 is there and he updated some value of some object letz say Obj1, now each and every user of the system must have the latest vaue. For this, on the commitement of the transaction, we are firing a message on the topic, which is listened by all other clients. once they recieve this message, they tries to fetch the data from the server.

                  It is also possible that within a single trasaction, multiple messages could be sent, it depends upon the type of operation.

                 

                In our test scenario we have 32 clients and each client is performing approximately 12 operations per minute.

                 

                 

                 

                What sessions are you using transacted/notransacted?

                     We are using non transacted sessions, as we have seen that transacted sessions causes memory leak.

                 

                How do you ack your messages?

                     All messages we are sending have Auto_Acknowledge mode

                 

                Do you use selectors/message priority?

                    No we are not using message priority, as per our knowledge, message priority only works for Queues and not for Topics.

                 

                • 5. Re: Message Ordering in JBoss
                  Yong Hao Gao Master

                  Hi guys,

                   

                  JBoss Messaging only support strict message ordering (called ordering group) on queues. It doesn't support topics.

                  The latest version for community is 1.4.5.GA.

                   

                  Howard

                  • 6. Re: Message Ordering in JBoss
                    Mayank Mittal Novice

                    Hello Yong,

                     

                        Thats very much true, and is in my knowledge, but my problem is that we want strict message ordering on Topic. 

                     

                         Does Jboss Messaging 1.4.5 or HornetQ is providing such feature, i..e strict message ordering for topics.

                    • 7. Re: Message Ordering in JBoss
                      Yong Hao Gao Master

                      Hi,

                       

                      JBoss Messageing 1.4.5.GA still doesn't support strict ordering on Topic. And JBM is in maintenance mode only. HornetQ is the better solution for you. As far as I know, HornetQ support strict ordering on Queue, not sure about topic. You can go to the HornetQ forum to discuss your request. The HornetQ forum is very active and you will sure get response from core developers.

                       

                      Howard