-
1. Re: Multiple Standalone server in 1 Jboss installation instance
nickarls Dec 27, 2012 2:31 AM (in response to choonny)I think it's not yet possible (I recall seeing a JIRA for it). The problem is not the startup (there is already a parameter for switching between configuration files) but there would have to be different tmp/work folders etc to keep the instances apart.
-
3. Re: Multiple Standalone server in 1 Jboss installation instance
choonny Dec 27, 2012 1:28 PM (in response to nickarls)I was thinking of having a completely separate folder like: standalone1, standalone2.
That would guarantee that they have a separate temp folder.
Do you have the link to the JIRA page?
-
4. Re: Multiple Standalone server in 1 Jboss installation instance
nickarls Dec 28, 2012 2:20 AM (in response to choonny)I can't seem to find it right now.
If you look at boot.log and find a way of overriding all system properties that lead to the "standalone" branch, I guess it could be done (as long as all writing operations occur within the standalone folder)
Most of the size of the binaries of an AS is in the modules dir anyway so if all else fails, you could keep the modules dir somewhere else and copy the AS directories, keeping a reference to the separate modules folders...
Do post back or write a short article if you get a nice workaround.
-
5. Re: Multiple Standalone server in 1 Jboss installation instance
ramanasada Jun 17, 2016 1:26 AM (in response to choonny)Hi
Yes it is possible to run multiple standalone servers in the same jboss.
- Create a copy of standalone and rename to standalone_2
- Create copy of standalone.bat and rename as standalone2.bat file in bin folder and change the following.
if "x%STANDALONE_CONF%" == "x" (
set "STANDALONE_CONF=%DIRNAME%standalone.conf2.bat"
)
- Create a copy of standalone.conf.bat file and rename as standalone.confIedms.bat file in bin folder and add below line to point base directory as standalone2 folder.
set "JAVA_OPTS=%JAVA_OPTS% -Djboss.server.base.dir=standalone_2"
- Add the below port-offset value in standalone-full.xml file in the path standalone_2\configuration
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="100"> (means adds 100 to existing port number)
- Add the below port-offset value in standalone-full.xml file in the path standalone_2\configuration
- Deploy the your application run with xxxx port number available in above <socket-binding-group> tag