Setup 2 Adempiere JBoss server in 1 physical server
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:
- Stop the running server
- Copy Adempiere folder as Adempiere2
- Remove Adempeire default path
- As we will have 2 server, we can’t have a default Adempiere Path
- Remove system varialbe, ADEMPIERE_HOME. If its linux please remove from etc/.profile
- With Adempiere2, execute RUN_Setup.bat /.sh
- Adempiere Home = Absolute Path to Adempiere2
- Web Port = new port, i.e., default +10
- JNP Port = new port, i.e, default + 10
- SSL = new port, i.e., default + 10
- Database = new database, i.e., Development Database
- Change port in following XML file for Adempiere2 (i.e., existing port +10)
- jboss\server\adempiere\conf\jboss-service.xml –> 1098, 1099, 8083, 4444, 4445, 4446
- jboss\server\adempiere\deploy\ejb3.deployer\META-INF\jboss-service.xml –> 3873
- jboss\server\adempiere\deploy\jboss-web.deployer\server.xml –> 8009
- 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.
- Start Adempiere2, RUN_Server2.bat /.sh
- 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)