WebSphere Message Broker, Version 8.0.0.7
Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS
See information about the latest product version
See information about the latest product version
Accessing broker properties from the JavaCompute node
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.
Broker properties are divided into
four categories:
- Properties that relate to a specific node
- Properties that relate to nodes in general
- Properties that relate to a message flow
- Properties that relate 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 have
the following characteristics.
- They are grouped by broker, execution group, flow, and node.
- They are case sensitive. Their names always start with an uppercase letter.
- They 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();