You can access broker properties, at run time, from the ESQL modules in your message flow nodes.
DECLARE mybroker CHARACTER;
SET mybroker = BrokerName;
where BrokerName is
the broker property that contains the name of the broker on which
the message flow is running. However, you cannot use broker properties
on the left side of SET statements. This restriction exists because,
at run time, broker properties are constants: they cannot be modified,
therefore their values cannot be changed by SET statements. If a program
tries to change the value of a broker property, the error message Cannot
assign to a symbolic constant is issued.If your ESQL code already contains a variable with the same name as one of the broker properties, your variable takes precedence; that is, your variable masks the broker property. To access the broker property, use the form SQL.<broker_property_name>. For example: SQL.BrokerName.
Broker properties that are accessible from ESQL, the Mapping node, and Java shows the broker, flow, and node properties that are accessible from ESQL and indicates which properties are also accessible from Java.