Accessing integration node properties from the JavaCompute node
For each integration node, IBM® Integration Bus 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 integration node.
About this task
Integration node 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 integration server
Integration node properties that are accessible from ESQL, the Mapping node, 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.
Integration node properties
have the following characteristics.
- They are grouped by integration node, integration server, 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 integration node properties in a JavaCompute node, call methods
on the following classes:
- MbBroker
- MbExecutionGroup
- MbMessageFlow
- MbNode
For example:
String brokerName = getBroker().getName();