Broker 10.5 | webMethods Broker Documentation | webMethods Broker Messaging Programmer's Guide | Using Access Labels with webMethods Messaging | Setting a Client Access Label
 
Setting a Client Access Label
 
Setting the Client Access Label Automatically
The access label assigned to particular document is called a control label, and it is stored in the envelope field _env.controlLabel. A publishing client is responsible for setting this field using an API.
To set a client access label, the following methods are provided for JMS and C#:
*JMS Messaging:
public interface WmMessage {
// Set access label to message envelope
public void setAccessLabel(short [] label) throws JMSException;
}
*C# Messaging:
public interface IMessage {
// Set access label to message envelope
short[] AccessLabel
{
set;
}