Using The Jbossas-* Commands From Any Directory; Running Multiple Instances Of Jboss As - Red Hat APPLICATION STACK 1.4 - RELEASE NOTES Release Note

Table of Contents

Advertisement

Chapter 4. Using JBoss AS
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 AS 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 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:
14

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the APPLICATION STACK 1.4 - RELEASE NOTES and is the answer not in the manual?

Questions and answers

Table of Contents