Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-6349

JMSXGroupId has no effect on JMSProducer

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 10.0.0.Final
    • 11.0.0.Alpha1
    • JMS
    • None

    Description

      Scenario

      I'm setting the JMSXGroupID on a JMSProducer to achieve message delivery in the correct order. The consumer is a message-driven bean.

              JMSProducer producer = context.createProducer();
              producer = producer.setProperty("JMSXGroupID", "sequential");
              producer = producer.setProperty("foo", "bar");
              for (int i = 0; i < 50; i++) {
                  msgNumber++;
                  String text = "This is message " + msgNumber;
                  producer.send(queue, text);
              }
      

      Expected Behaviour

      The messages are received in the correct order, the properties JMSXGroupID and foo are set on the receiver side.

      Actual Behaviour

      The messages are received in random order. Property foo is set, but property JMSXGroupID is null on the receiver side.

      Workaround

      Create a TextMessage and set the properties on the message, not on the producer.

      Attachments

        Issue Links

          Activity

            People

              jmesnil1@redhat.com Jeff Mesnil
              hwellmann.de Harald Wellmann (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: