是否可以使用单个JBoss服务器运行两个或多个ADempiere实例?
We can deploy multiple adempiere instances into one single jboss application. but need to do lot of changes in jboss module and as well as in build scripts in Adempiere project. This link will give the idea about how to setup the multiple adempiere instances in one jboss server.
Instead of the deploying multiple instances in same jboss server, you can deploy with multiple instances by copying the entire jboss folder (your adempiere installer) in same machine. In this step you need to change only 5 ports.
Adempiere runs on a bundled Jboss server. Because of that, I don't think you can run several Adempiere instances on same Jboss server. But you can run two Adempiere Jboss servers on the same physical machine by changing ports.
Given that we already have 1 Adempiere Application Server running, here is the step to activate another Application Server (ie, as Development Server)
ADEMPIERE_HOME
. If its linux please remove from etc/.profile
RUN_Setup.bat/.sh
Change port in following XML file for Adempiere2 (ie, 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 make copy of these files after the change.
Start Adempiere2(Second Adempiere Instance), RUN_Server2.bat/.sh
RUN_Server2.bat/.sh
as normal UPDATE
You have to disable Xdebug from both servers if you have enabled it previously. Otherwise, you may get "port already in use" error for debug port, which is 8787
Referance : http://www.adempiere.com/Setup_2_Adempiere_JBoss_server_in_1_physical_server
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.