[ 
https://issues.apache.org/jira/browse/ARTEMIS-462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15224396#comment-15224396
 ] 

ASF subversion and git services commented on ARTEMIS-462:
---------------------------------------------------------

Commit 69a97c3678b0b3f061736285bb73c96385d6a2eb in activemq-artemis's branch 
refs/heads/master from [~jbertram]
[ https://git-wip-us.apache.org/repos/asf?p=activemq-artemis.git;h=69a97c3 ]

ARTEMIS-462 JMSXGroupID on JMS 2 producer


> JMSXGroupId is not taken into account when set on the JMSProducer
> -----------------------------------------------------------------
>
>                 Key: ARTEMIS-462
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-462
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 1.1.0
>            Reporter: Jeff Mesnil
>            Assignee: Justin Bertram
>
> Use case:
> * Set "JMSXGroupId" on the JMSProducer and send messages
> Expected behaviour:
> * a single consumer (in our case a MDB) should receive all messages serially
> Actual behaviour:
> * messages are consumed by different consumers
> The issue occurs only if the JMSXGroupId is set on the JMSProducer. When it 
> is set on the Message itself, the behaviour is correct.
> The issue occurs when the JMSProducer set its properties on the message to 
> send in ActiveMQJMSProducer#setProperties.
> Properties are all set using ActiveMQMessage#setObjectProperty. However 
> JMSXGroupId is handled specifically in ActiveMQMessage#setStringProperty() to 
> translate it to the Artemis own's HDR_GROUP_ID. This special case is absent 
> from setObjectProperty and the underlying Artemis ClientMessage does not have 
> the HDR_GROUP_ID property set and messages will not be grouped.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to