Broker 10.5 | webMethods Broker Documentation | webMethods Broker Messaging Programmer's Guide | Using Access Labels with webMethods Messaging | Setting a Client Access Label | Setting the Client Access Label Automatically
 
Setting the Client Access Label Automatically
An option is provided to have the Broker set this controlLabel envelope field for the client automatically by using the client's access label. This option is disabled by default. To enable this option, use the following API calls:
*JMS Messaging:
public interface WmConnectionFactory {
// Enable or disable Broker to set the control label automatically.
The Broker client’s control label will be automatically inserted into
the controlLabel envelope field of any event the client publishes
or delivers. Set to "true" to enable and "false" to disable.
public void setAutomaticControlLabel(boolean enable);
}
*C# Messaging:
public interface IConnectionFactory {
//Enable or disable Broker to set control label automatically.
The Broker client's control label will be automatically inserted
into the controlLabel envelope field of any event the client
publishes or delivers. Set to "true" to enable and "false" to disable.
Boolean AutomaticControlLabel
{
set;
}