For each broker, WebSphere Message Broker maintains a set of attributes. You can access some of these attributes from your Java programs. It can be useful, during the run time of your code, to have real-time access to details of a specific node, flow, or broker.
The List of broker properties accessible from ESQL and Java shows the broker, flow, and node attributes that are accessible from Java. The table also indicates whether the attributes are accessible from ESQL.
String brokerName = getBroker().getName();
Table 1 shows the broker, flow, and node attributes that are accessible from Java and ESQL.