Jboss as 7 - running multiple instances on the same linux server - standalone domain vs

  • I uploaded the jboss tar file.
  • Copied to test server.
  • Uninstalled and installed it in $ HOME / jboss /

Now I need to run three instances at the same time - Dev, QA, UAT - on the SINGLE server.

Is domain mode for this situation? I came to the conclusion that this is not so. This domain mode is for managing JVMs on multiple servers. For example, if I wanted the QA to be in server1 and server2. It is right?

However, I need NOT to manage JBOSS instances on multiple servers.

Given that I should use offline mode? If so, how would I launch three instances of JBOSS (Dev, QA and UAT) at the same time.

I tried the instructions given here (approach 2): https://community.jboss.org/wiki/MultipleInstancesOfJBossAS7OnTheSameMachine

But I still get errors like this:

MSC00001: Failed to start service jboss.serverManagement.controller.management.http: org.jboss.msc.service.StartException in service jboss.serverManagement.controller.management.http: Address already in use /127.0.0.1:9990

Is there any simple tutorial that I can follow. I see that these questions are asked several times, but none of them seem to have a satisfactory answer ... I find it useful. Is it a black art that low-level developers should not try alone?

Sgb

+5
source share
4 answers

To get multiple jboss instances running on Linux in JBOSS_HOME / standalone / configuration / standalone.xml, I changed one line:

<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">

to the next...

<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:100}">

: , , , JBOSS_HOME .bash_profile jboss. , JBOSS_HOME.

+7

.

bash $./standalone.sh -Djboss.socket.binding.port-offset = 10000

18080.

8080 + 10000 18080.

+5

"-Djboss.socket.binding.port-offset = 1000" standalone.sh, :

./standalone.sh -Djboss.socket.binding.port-offset=1000

jboss +1000 ( 8080 18080). xml.

+3

If you use Jboss in Intellij, you would like to add an offset to the server configuration, just go to Run -> Edit configuration:

enter image description here

0
source

All Articles