I'm setting the JMSXGroupID on a JMSProducer to achieve message delivery in the correct order. The consumer is a message-driven bean.
The messages are received in the correct order, the properties JMSXGroupID and foo are set on the receiver side.
The messages are received in random order. Property foo is set, but property JMSXGroupID is null on the receiver side.
Create a TextMessage and set the properties on the message, not on the producer.