5 Replies Latest reply on Feb 27, 2013 6:51 PM by clebert.suconic

    Can message grouping (_HQ_GROUP_ID) be disabled at runtime?

    vpaziran

      Hi everyone. I am running JBoss 6.1 with HornetQ 2.2.5. I have a live system with message grouping enabled using the Java API ("JMSXGroupID"). Is it possible to disable this feature on a live system, possibly by using the JMX Console, or by a properties file in the JBoss deployment dir? I am trying to have this feature disabled without redeploying any artifacts to JBoss. Thanks for your help.

        • 1. Re: Can message grouping (_HQ_GROUP_ID) be disabled at runtime?
          gaohoward

          As far as I know if you don't use JNDI with 'auto-group' on JMS Connection Factories, enabling/disabling message grouping is simply controlled from client side, no need to change the server configuration at all.

           

          Howard

          • 2. Re: Can message grouping (_HQ_GROUP_ID) be disabled at runtime?
            vpaziran

            You are right. Sorry for not mentioning that I don't want to make any changes to the client side either. And yes, currently the message grouping is being configured on the client side. My goal is to change that behavior without deploying new artifacts into this production system. A JBoss restart is viable, but not new artifacts.

            • 3. Re: Can message grouping (_HQ_GROUP_ID) be disabled at runtime?
              ataylor

              nope, gouping is started automatically so you will have to stop adding the header on the client side.

              • 4. Re: Can message grouping (_HQ_GROUP_ID) be disabled at runtime?
                vpaziran

                Bummers. And now that I'm looking at the code more closely I can see how this can't be done. But let me correctly restate my setup, which I seem to keep messing up on, in case there is a glimmer of hope left:

                • The Producer and Consumer of the queue are on separate Linux servers, each with their own JBoss 6.1 instance.
                • Currently the Producer is configuring the message grouping by using a Spring MessagePostProcessor. Thus, before each message delivery it is setting the JMS message grouping property on the message and then delivering it to the queue.
                • My goal is to disable message grouping without making changes to the code. Restarting JBoss is a viable option if some properties files can be leverged. Runtime settings might be another.

                 

                Given that the message grouping header is being added dynamically like I've stated above, hope seems to be lost, but please confirm. Thanks everyone for your speedy help.

                • 5. Re: Can message grouping (_HQ_GROUP_ID) be disabled at runtime?
                  clebert.suconic

                  @andy: could we add a property that would use the group one more time and then close it?

                   

                  Say... _hq_group_end...

                   

                   

                  you would add a property to the message it would be used a last time and then delete it.

                   

                   

                  I think that's how I hve seen another system doing it.

                   

                   

                  From the point of view of grouping single node this would be easy. I'm not sure about clustering groups.