]
Claudio Miranda commented on WFLY-1682:
---------------------------------------
You have two options
1) use domain mode
2) use a copy of standalone.xml to start the 2nd server
ugly style allowing to start multiple servers refer to the same
server-config file
----------------------------------------------------------------------------------
Key: WFLY-1682
URL:
https://issues.jboss.org/browse/WFLY-1682
Project: WildFly
Issue Type: Enhancement
Components: Server
Affects Versions: 8.0.0.Alpha2
Reporter: Jay Wu
Assignee: Jason Greene
{color:red}
WildFly allows to start multiple servers refer to the same server-config as following
{color}
{noformat}
standalone.bat -server-config=standalone.xml -Djboss.node.name=node1
{noformat}
{noformat}
standalone.bat -server-config=standalone.xml -Djboss.socket.binding.port-offset=100
-Djboss.node.name=node2
{noformat}
{noformat}
standalone.bat -server-config=standalone.xml -Djboss.socket.binding.port-offset=200
-Djboss.node.name=node3
{noformat}
{color:red}
the three nodes do not share the modification, but the later will overwrite the former
in the standalone.xml.
{color}
{quote}
for example
(1) create datasource "ds4node1" to node1 which created above.
and ds4node1 is written into standalone.xml.
↓
(2) careate datasource "ds4node2" to node2
and ds4node1 which was created in step(1) is deleted from standalone.xml,
ds4node2 is written into standalone.xml.
↓
(3) careate datasource "ds4node3" to node3
and ds4node2 which was created in step(2) is deleted from standalone.xml,
ds4node3 is written into standalone.xml.
{quote}
{color:red}
after restarting the three nodes, the three nodes refers to standalone.xml, and share the
last created datasource "ds4node3"。
{color}
{color:red}
the above style may confuse users.
if it is a style flaw, is there any plan to improve it.
{color}