[jboss-jira] [JBoss JIRA] (WFLY-1682) ugly style allowing to start multiple servers refer to the same server-config file
Claudio Miranda (JIRA)
issues at jboss.org
Thu Oct 9 23:24:12 EDT 2014
[ https://issues.jboss.org/browse/WFLY-1682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010448#comment-13010448 ]
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}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the jboss-jira
mailing list