Preparing the ground
36
Follow the steps mentioned in Debugging ADempiere server application
recipe to add a new JBoss server pointing to <JBOSS_HOME>\server\
adempiere360lts_2
and deploy Adempiere_360_2 to it. Make sure,
your PropertyFile VM argument points to the Adempiere.properties
created in <ADEMPIERE_SVN>\tags\adempiere360lts_2 folder and
ADEMPIERE_HOME VM argument points to <ADEMPIERE_SVN>\tags\
adempiere360lts_2
Now, run the JBoss default server, where you had Adempiere_trunk
deployed, and also run the second JBoss server where you have
Adempiere_360_2 deployed
2. Running an instance with 1-N-1 Setup.
Go to Eclipse
Right-click on the JBoss server entry in the Servers view, which we had
created with the default conguration and to which Adempiere_trunk
was deployed, and click Add and Remove. You will see Adempiere_trunk
listed under the Congured items and Adempiere_360_2 listed under the
Available items
Add Adempiere_360_2 to the Congured list and click on the Finish button
Right-click on the JBoss server entry and click Publish to deploy
Adempiere_360_2. Adempiere_360_2 will be the context for this
ADempiere instance
Right-click on the JBoss server entry and click on Start the server with two
instances of ADempiere deployed. You can now access the two instances by
accessing the following URLs:
http://localhost:8080/Adempiere_trunk/
http://localhost:8080/
Adempiere_360_2/
Both ADempiere instances will be pointing to the same database as the database
connection detail is mentioned in the Adempiere.properties le and a common
property le is used in the VM arguments of the JBoss server.
How it works...
In order to have an instance with 1-1-1 setup, important point to make is making sure that we
are able to run multiple instances of the JBoss server on a single machine. This requires us
to make changes to the different port numbers, which one or another service in JBoss uses.
If this is not done, some or some other service would not run and that would lead to an error
while we try to deploy and run the application.