How to run multiple instances of EAP 6 in a one single machine by using different modules jar ?

Solution Unverified - Updated -

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Issue

  • How to run multiple instances of EAP 6 in a one single machine by using different modules jar ?
  • We need different module jar (ABC.jar @ /opt/jboss-eap-6.2.0/modules/system/layers/base/com/abc/main) for each instance. Please suggest some way so that we can use separate jar for each instance like :
    abc_1 > main > ABC_v1.jar
    abc_2 > main > ABC_v2.jar

Resolution

  • Use custom start up script will set JBOSS_MODULEPATH and start server or set it manually on each command prompt according to custom module path like :

For server 1 :

set JBOSS_MODULEPATH=%JBOSS_HOME%/modules;/opt/first_server
./standalone.sh 

For server 2 :

set JBOSS_MODULEPATH=%JBOSS_HOME%/modules;/opt/second_server
./standalone.sh 

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.