Chapter 4. Using JBoss Application Server
12
To run multiple servers simultaneously you will need to adjust the configuration to avoid port conflicts,
as described in the JBoss Application Server documentation. Refer to
Section 4.5, “ Running multiple
instances of JBoss Application Server ”
for more information.
Note
Please note that automated updating of copies created using methods above is not
supported. If you create custom copies, you will manually have to port files / changes
from a new update to that copy.
4.4. Using the
jbossas-*
commands from any directory
Most of the commands found in
$JBOSS_HOME/bin
have equivalents in
/usr/bin
with names like
jbossas-
command
, where
command
is the original JBoss Application Server command name. So, for
instance, there is a
jbossas-run
command that is available from any directory.
To use these commands, however, you must set two environment variables:
export JBOSS_HOME=/var/lib/jbossas
export JAVA_HOME=/usr/lib/jvm/java
where the value you give for
JAVA_HOME
is the location of your installed Java VM.
4.5. Running multiple instances of JBoss Application
Server
Note
Please note that automated updating of instances created using methods below is
not supported. If you create custom instances, you will manually have to port files /
changes from a new update to that instance.
The description here is restricted to running multiple instances of the JBoss Application Server
Linux service. Running multiple instances with
run.sh
is already described elsewhere in the JBoss
Application Server documentation.
You can administer multiple SysV services that run JBoss Application Server by creating additional
service scripts. The process basically consists of:
• creating a link with the new service name to the original
jbossas
init script in
/etc/init.d
• copying the
jbossas
file in
/etc/sysconfig
to one with the new service name (the init script and
the configuration file names must match)
• making the desired configuration changes making sure:
• port conflicts are avoided
• a different log file is specified