export JAVA_HOME=/usr/lib/jvm/java
where the value you give for
JAVA_HOME
is the location of your installed Java VM.
5. Running multiple instances of JBoss AS
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 AS Linux service.
Running multiple instances with
run.sh
is already described elsewhere in the JBoss AS
documentation.
You can administer multiple SysV services that run JBoss AS 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
Note
The original init script log files are created under
/var/log/jbossas
in
directories that correspond to the configuration used (like 'default') with the usual
server.log
name. For instance:
/var/log/jbossas/default/server.log
In general, each log file is created by the SysV script as
/var/log/service-name/$JBOSSCONF/server.log
so no file conflicts shall exist.
Running multiple instances of JBoss AS
15
Содержание APPLICATION STACK 1.3 RELEASE
Страница 1: ...Red Hat Application Stack V 1 3 Release Notes 1 3 ISBN N A Publication date ...
Страница 2: ...Red Hat Application Stack V 1 3 Release Notes ...
Страница 3: ...Red Hat Application Stack V 1 3 Release Notes Copyright 2006 2008 Red Hat Inc ...
Страница 4: ...Red Hat Application Stack V 1 3 Release Notes ...
Страница 6: ...vi ...
Страница 8: ...2 ...
Страница 12: ...6 ...
Страница 24: ...18 ...
Страница 26: ...20 ...