Setup 2 Adempiere JBoss server in 1 physical server

From ADempiere ERP Wiki

Jump to: navigation, search

This is a small tip to setup new Adempiere Web Server in the same JBoss Server.

Given that we already have 1 Adempiere Application Server running, here is the step to activate another Application Server (i.e., as Development Server)

Step:

  1. Stop the running server
  2. Copy Adempiere folder as Adempiere2
  3. Remove Adempeire default path
    1. As we will have 2 server, we can't have a default Adempiere Path
    2. Remove system varialbe, ADEMPIERE_HOME. If its linux please remove from etc/.profile
  4. With Adempiere2, execute RUN_Setup.bat /.sh
    1. Adempiere Home = Absolute Path to Adempiere2
    2. Web Port = new port, i.e., default +10
    3. JNP Port = new port, i.e, default + 10
    4. SSL = new port, i.e., default + 10
    5. Database = new database, i.e., Development Database
  5. Change port in following XML file for Adempiere2 (i.e., existing port +10)
    1. jboss\server\adempiere\conf\jboss-service.xml --> 1098, 1099, 8083, 4444, 4445, 4446
    2. jboss\server\adempiere\deploy\ejb3.deployer\META-INF\jboss-service.xml --> 3873
    3. jboss\server\adempiere\deploy\jboss-web.deployer\server.xml --> 8009
    4. Note: These port must be changed only after RUN_setup.bat /.sh, as running it will reset them back. As such, you might want to 6. make copy of these files after change.
  6. Start Adempiere2, RUN_Server2.bat /.sh
  7. Then start Adempiere, RUN_Server2.bat /.sh as normal

Thadaa, now you have run 2 instance of Adempiere on different port. --Kittiu 00:11, 11 December 2011 (UTC)

Personal tools