The servers must obey these rules:
The servers must be started on hosts connected by a LAN.
The servers must be configured with the discovery service activated. (see Section 3.7 Configuring the Discovery Service).
There must be at least one master server in the domain. The role of a server, slave or master is determined by the discovery service configuration.
The servers must have different names, but the same domain name.
![]() | Note |
---|---|
Also note the following:
|
Consider a scenario in which there are three JOnAS servers named jonas, j1 and j2. Assume they have discovery service configured with at least one of the servers playing the role of master.
Start the server named jonas in domain jonas (by default, the domain name is given by the server's name):
jonas start |
Start the server named j1 in domain jonas:
jonas start -n j1 -Ddomain.name=jonas |
Start the server named j2 in domain jonas:
jonas start -n j2 -Ddomain.name=jonas |
![]() | Note |
---|---|
Note that servers may be started in any order. |