I need create 4 Applications running in different ports within JBOSS EAP 7.
I know that i need use port-offset in standalone.xml to configure it. But i need separate server.log and stop/start for each instance. So i have 2 solutions:
1) Copy entire jboss folder for each project. i.e: jbossA, jbossB ...
2) Create a instances folder in jboss folder a use server.base.dir argument, like this: -Djboss.server.base.dir=appA
Which is the usual choice to multiple jboss instances ?
We use different server base directories, eg:
-Djboss.server.base.dir
argument to standalone.sh
.standalone.xml
for every app as they require different subsystems. If they are all the same for your case you can link them instead of copying.