In this example we assume that we have two nodes that will form our cluster. The first one is located in the HORNETQA_ROOT
folder and the second one is located in the HORNETQB_ROOT
folder. We need to start each node separately and after this we will code our example. If you refer to the book's code you will find the configuration files ready to be used by simply copying them into the correct configuration folder.
To configure the first node we need to modify the following files, in both nodes:
Considering the last point, we will define the ports to be used, not as command-line parameters as we did previously, but we will define them in configuration files, which is a more correct way to approach such problems.
We emphasize the point...