Follow the steps
Make 2 copies of your standalone folder. Give them distinct names - like stage1 and stage2.
Place the war files under the deployment directory.
Make the appropriate changes in the standalone.xml so that the ports do not conflict. This can be easily achieved by specifying a
port-offset
in one of thestandalone.xml
undersocket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:100}">
So one of the ports will be 8080 while the other is 8180
Next make separate start up scripts for the two standalone instances or run the standalone.sh specifying the arguments. I use a .bat file and start it using
cmd
promptstandalone.bat -Djboss.server.base.dir=../stage1 - Dorg.jboss.boot.log.file=c:\tools\jboss\jboss-as-7.1.1.Final\stage1\log\boot.log -Dlogging.configuration=c:\tools\jboss\jboss-as-7.1.1.Final\stage1\configuration\logging.properties
and similiarly for stage2
Hope this helps.