此内容没有您所选择的语言版本。
26.2. Using JMS
The property name used to identify the message group is
JMSXGroupID
.
Alternatively, you can set
autogroup
to true on the HornetQConnectionFactory
which will pick a random unique id. This can also be set in the JBOSS_DIST/jboss-as/server/<PROFILE>/deploy/hornetq/hornetq-jms.xml
file like this:
Alternatively you can set the group id via the connection factory. All messages sent with producers created via this connection factory will set the
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
JMSXGroupID
to the specified value on all messages sent. To configure the group id set it on the connection factory in the hornetq-jms.xml
configuration file as follows: