For each broker, WebSphere Message Broker maintains
a set of properties. You can access some of these properties 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.
There are four
categories of broker property:
- Those relating to a specific node
- Those relating to nodes in general
- Those relating to a message flow
- Those relating to the execution group
Broker properties that are accessible from ESQL and Java includes a table that shows
the groups of properties that are accessible from Java. The table also indicates
if the properties are accessible from ESQL.
Broker properties:
- Are grouped by broker, execution group, flow, and node.
- Are case sensitive. Their names always start with an uppercase letter.
- Return NULL if they do not contain a value.
To access broker properties in a JavaCompute node, call methods
on the following classes:
- MbBroker
- MbExecutionGroup
- MbMessageFlow
- MbNode
For example:
String brokerName = getBroker().getName();