Within a message, TIBCO Enterprise Message Service can supply the user name given by the message producer when a connection is created. The sender_name
and sender_name_enforced
properties on the destination determine whether the message producer’s user name is included in the sent message.
When a user name is included in a message, a message consumer can retrieve that user name by getting the string message property named JMS_TIBCO_SENDER
. The following illustrates retrieving the property:
When the sender_name
property is enabled and the sender_name_enforced
property is not enabled on a destination, message producers can specify that the user name is to be left out of the message. Message producers can specify the JMS_TIBCO_DISABLE_SENDER
boolean property for a particular message, and the message producer’s user name will not be included in the message. However, if the sender_name_enforced
property is enabled, the JMS_TIBCO_DISABLE_SENDER
property is ignored and the user name is always included in the message.
The following illustrates setting the JMS_TIBCO_DISABLE_SENDER
property:
TIBCO Enterprise Message Service™ User’s Guide Software Release 4.3, February 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |