JMSXUserID supportIt is sometimes useful to know the authenticated username of the sender of a message. This is not added by default but you can enable it by setting the populateJMSXUserID property on the broker via Java code BrokerService broker = new BrokerService(); broker.setPopulateJMSXUserID(true); broker.start(); Or via the Xml Configuration <broker xmlns="http://activemq.org/config/1.0" populateJMSXUserID="true">
...
</broker>
Or via the Broker Configuration URI. Once enabled this feature adds the JMS property JMSXUserID to each JMS message so that a consumer can know exactly who the sender was using the broker's authentication policy. i.e. it is not possibile for a producer to spoof this value if this feature is enabled since the broker attaches the property to the message after the senders connection is authenticated. |