Version: 17.07
Supported Since: 17.07
Fetch Cluster Domain processing element can be used to fetch the domain name of the cluster that currently running UltraESB-X instance belongs to. When configuring a cluster of UltraESB-X instances, a domain value should be specified in order to group a set of UltraESB-X instances.
In order to use this processing element, you must first select the Cluster Management dependency from the processor list when you are creating an empty Ultra project. If you have already created a project, you can add this dependency via Component Registry. From Tools menu, select Ultra Studio → Component Registry and from the Processors list, select the Cluster Management dependency. |
In the following use case, the requirement is to create a web service which will accept http requests and respond with the cluster domain.
To tryout this processor, you should have clustering enabled. This will guide you through how to create a cluster of UltraESB-X with the support of Zookeeper.
In order to implement above use case you must first select following dependencies when you are creating an empty Ultra project
HTTP NIO Connector from the connector list.
Clustering Manager Processors and Payload Manipulation Processors dependency from the processor list.
If you have already created a project, you can add above dependencies via Component Registry. From Tools menu, select Ultra Studio → Component Registry and from the Connectors list and Processors list, select above dependencies
To implement above use case, first let’s create our integration flow named “integrate-for-cluster-domain". Then add an NIO HTTP Ingress Connector and configure the request receiving service path and port.
Then Fetch Cluster Domain processing element should be added to the Out Port of NIO HTTP Ingress Connector. From the property pane, add a name for the variable that should copy the value of cluster domain into it.
Add a String Payload Setter processing element and set the variable name which includes the cluster domain as the value of processing element
Now run your integration flow and send a request message to the configured request URL to test your integration flow. Once you send a request, you should receive the cluster domain as the response